Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to upload Phonegap Build APK to play.google - You uploaded a debuggable APK error

Tags:

apk

build

cordova

Trying to upload a release version APK generated from Phonegap Build to the Google play store.

Getting an error as follows:

Upload failed

You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.

But this is a release version? It is not in Debug mode - why this error now?

If I need to add something to the config XML to set debugging to False, what would that be?

I repeat that this is a phonegap Build project - so all I have is html, css, js and image files. These are then zipped up and uploaded to build.phonegap and they generate the IPA and APK etc etc

like image 495
user3032942 Avatar asked Nov 25 '13 15:11

user3032942


1 Answers

Martina is correct, but I want to add more details:

You must create a signing key and upload it to PhoneGapBuild to use.

Create a Keystore for Signing your build using a java utility called "keytool"

  1. Find keytool (it comes with java). I found mine at: C:\Program Files (x86)\Java\jre6\bin
  2. Open command prompt and enter the following commands
  3. cd C:\Program Files (x86)\Java\jre6\bin

    (use whatever dir you found the keytool in)

  4. keytool -genkey -v -keystore C:\DIR\APPNAME.keystore -alias APPNAME -keyalg RSA -keysize 2048 -validity 10000

    (Change DIR and APPNAME to something appropriate)

  5. Enter the keystore password (remember this)

  6. Answer the questions about yourself: your name, organization, location, etc.
  7. DONE: The keystore will be created for your app

Remaining Steps:

  • Upload that to PhoneGap Build.
  • Unlock the keystore for 1 hour by entering your keystore password
  • Build the app

This will create a release version of the .apk that can be uploaded to Google Play.

like image 199
Rick Love Avatar answered Nov 07 '22 06:11

Rick Love