gradle - Error building Android app in release mode, in Android Studio -


i'm trying sign android app in release mode, in android studio.

i followed this official guide. have created keystore , private key. tried generate signed apk, build -> generate signed api key. build fails, following error:

:app:packagerelease failed error:a problem found configuration of task ':app:packagerelease'. > file 'c:\documents\myapp\android.jks' specified property 'signingconfig.storefile' not exist. 

i have checked build.gradle configuration. , have found this:

   signingconfigs {         releaseconfig {             keyalias 'xxxxxxxxxx'             keypassword 'xxxxxxxxx'             storefile file('c:\documents\myapp\android.jks')             storepassword 'xxxxxxxxx'         }     } 

but in same gradle file have this:

buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'             signingconfig signingconfigs.releaseconfig         }     } 

what's wrong?

replace \ \\:

storefile file('c:\\documents\\myapp\\android.jks') 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -