Reputation: 23
if you work with cordova please help me to solve this error from google play :
Upload failed You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode. You need to use a different package name because "io.cordova.hellocordova" already exists in Google Play.
Upvotes: 1
Views: 2178
Reputation: 1426
Ok, I don't know if you're using PhoneGap Build or building locally, but I'm giving it a shot anyway. So if you are using PhoneGap Build:
You need to use a different package name because "io.cordova.hellocordova" already exists in Google Play.
To fix this error, you need to open your config.xml
and change the id
of your app from the widget element to something unique. For example "io.cordova.panahandeh":
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "io.cordova.panahandeh"
version = "0.0.1">
You uploaded a debuggable APK.
To solve this one, you need to change a setting called Enable debugging
from the PhoneGap Builds basic settings. So, on PhoneGap Builds Apps page:
If you haven't already digitally signed your app with a certificate, you must also do that before the app can be uploaded to Google Play. You can create a Android Signing key from command line by using Java keytool: http://docs.build.phonegap.com/en_US/signing_signing-android.md.html
After you have created the key, you must upload it to PhoneGap Build before building the app:
Upvotes: 4
Reputation: 11721
it seems when you created your project, you didn't specify a package name. When you create your project, you have to run
cordova create dirname packagename displayname
The packagename must be unique and look like something like this : com.mokshash.test. Look at the doc for more details.
To be able to upload your app to google play, it has to be built in release mode. So when you build the apk you want to upload to google play, you have to run
cordova build --release android
This will generate an unsigned apk
Upvotes: 1
Reputation: 1
Check your manifest file.
In the AndroidManifest.xml file, remove
android:debuggable="true"
from the <application>
element.
Note: If you manually enable debugging in the manifest file, be sure to disable it in your release build (your published application should usually not be debuggable).
Upvotes: 0