How to disable the debug android in ionic


#1

Upload failed
You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs.
You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode. Learn more about signing.


#2

Run cordova plugin rm org.apache.cordova.console

For more details, check: http://ionicframework.com/docs/guide/publishing.html


#3

Is this any other way myApp-dubug.apk we can get direct production file ?


#4

Sorry, what do you mean “get direct production file”?

You need to generate a keytool than zipalign your apk, did you do this before sending?


#5

You need to build with the --release option: see publishing your app in the guide.

@lucassimines removing the console plugin doesn’t make it a release build.


#6

Oh, you’re right. Thanks for the help.


#7

sudo zipalign -v 4 MainActivity-release-unsigned.apk
sudo: zipalign: command not found
iMac:weather-app isathish$


#8

It’s part of the Android SDK, in my case it’s android-sdk/build-tools/22.0.1/zipalign


#9

I had the same problem, you need to locate the zipalign, where you installed it.

Mine on Mac OS is:
/users/YOURUSER/library/android/sdk/tools/zipalign -v 4 MainActivity-release-unsigned.apk YOUR-APK-NAME.apk


#10

iMac:~ isathish$ /users/isathish/library/android/sdk/tools/zipalign -v 4 MainActivity-release-unsigned.apk MainActivity-release.apk
-bash: /users/isathish/library/android/sdk/tools/zipalign: No such file or directory
iMac:~ isathish$


#11

Is zipalign file inside the path /users/isathish/library/android/sdk/tools ?
Locate where the zipalign file is first than change the right path.


#12

i was installed android studio


#13

is it possible to disable chrome://inspect debugging?
all my javascript files are there.