Android Studio "Build" tab problem

14 views
Skip to first unread message

Doc Jump

unread,
May 20, 2016, 1:56:35 PM5/20/16
to phonegap
Hello. I have basically a Hello World phonegap sample project in Android Studio. According to online documentation, to sign the apk file, the first step is to click on the "Build" tab on the toolbar and select "Generate Signed APK"  menu item in the Build drop down. Unfortunately, there is no such menu item in my copy of Android Studio. Any ideas?
Thanks!

Kerri Shotts

unread,
May 22, 2016, 10:09:16 AM5/22/16
to phonegap
Which version of Android Studio are you using? This is the one I've got:


When I go to Build, I get the "Generate Signed APK" menu item:



That said, I sign my APKs using the Cordova CLI. You can configure "build.json" like so to specify keystores:

{
   
"android": {
       
"release": {
           
"keystore": "path/to/.release.keystore",
           
"alias": "<key-alias>"
       
}
   
}
}

And then to build a signed build:

$ cordova build android --release --buildConfig=path/to/your/build.json

Hope that helps!



On Friday, May 20, 2016 at 7:56:35 PM UTC+2, Doc Jump wrote:
...
Reply all
Reply to author
Forward
0 new messages