# How to disable the debug android in ionic

**URL:** <https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519>\
**Category:** ionic-v1\
**Created:** [May 29, 2015, 7:01pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519 "2015-05-29T19:01:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathishxcode](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sathishxcode](https://forum.ionicframework.com/u/sathishxcode)\
**Post date:** [May 29, 2015, 7:01pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/1 "2015-05-29T19:01:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lucassimines](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucassimines/32/12851_2.png) [@lucassimines](https://forum.ionicframework.com/u/lucassimines)\
**Post date:** [May 29, 2015, 7:03pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/2 "2015-05-29T19:03:04Z")

</div>

Run cordova plugin rm org.apache.cordova.console

For more details, check: [http://ionicframework.com/docs/guide/publishing.html](http://ionicframework.com/docs/guide/publishing.html)

---

<div class="post-metadata">

**Author:** ![sathishxcode](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sathishxcode](https://forum.ionicframework.com/u/sathishxcode)\
**Post date:** [May 29, 2015, 7:05pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/3 "2015-05-29T19:05:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lucassimines](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucassimines/32/12851_2.png) [@lucassimines](https://forum.ionicframework.com/u/lucassimines)\
**Post date:** [May 29, 2015, 7:08pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/4 "2015-05-29T19:08:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [May 29, 2015, 7:08pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/5 "2015-05-29T19:08:53Z")

</div>

You need to build with the `--release` option: see [publishing your app](http://ionicframework.com/docs/guide/publishing.html) in the guide.

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

---

<div class="post-metadata">

**Author:** ![lucassimines](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucassimines/32/12851_2.png) [@lucassimines](https://forum.ionicframework.com/u/lucassimines)\
**Post date:** [May 29, 2015, 7:11pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/6 "2015-05-29T19:11:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sathishxcode](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sathishxcode](https://forum.ionicframework.com/u/sathishxcode)\
**Post date:** [May 29, 2015, 7:15pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/7 "2015-05-29T19:15:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [May 29, 2015, 7:19pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/8 "2015-05-29T19:19:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lucassimines](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucassimines/32/12851_2.png) [@lucassimines](https://forum.ionicframework.com/u/lucassimines)\
**Post date:** [May 29, 2015, 7:21pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/9 "2015-05-29T19:21:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sathishxcode](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sathishxcode](https://forum.ionicframework.com/u/sathishxcode)\
**Post date:** [May 29, 2015, 7:27pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/10 "2015-05-29T19:27:25Z")

</div>

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$

---

<div class="post-metadata">

**Author:** ![lucassimines](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucassimines/32/12851_2.png) [@lucassimines](https://forum.ionicframework.com/u/lucassimines)\
**Post date:** [May 29, 2015, 7:30pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/11 "2015-05-29T19:30:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sathishxcode](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sathishxcode](https://forum.ionicframework.com/u/sathishxcode)\
**Post date:** [May 29, 2015, 7:31pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/12 "2015-05-29T19:31:03Z")

</div>

i was installed android studio

---

<div class="post-metadata">

**Author:** ![limulidae](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@limulidae](https://forum.ionicframework.com/u/limulidae)\
**Post date:** [September 27, 2015, 8:05pm UTC](https://forum.ionicframework.com/t/how-to-disable-the-debug-android-in-ionic/25519/13 "2015-09-27T20:05:46Z")

</div>

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