How to disable the debug android in ionic

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.

Run cordova plugin rm org.apache.cordova.console

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

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

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?

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.

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

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

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

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

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$

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

i was installed android studio

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