Google Play says my APK built with Android Studio Build->Generate Signed APK is debuggable

user1178729 picture user1178729 · Jan 4, 2014 · Viewed 11.8k times · Source

I get the message: 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.

I generate my APK with Android Studio, Build->Generate Signed APK. I created a Keystore.

Answer

pyus13 picture pyus13 · Jan 4, 2014

With a powerful gradle build system in android studio you can do it without even touching your code. You can also make your debug build with debuggable false to test what differences are

  buildTypes {

      debug {
         runProguard false/true
         proguardFile getDefaultProguardFile('proguard-android.txt')
         debuggable false/true

      }

      release {
         runProguard true/false
         proguardFile getDefaultProguardFile('proguard-android.txt')
         debuggable false/true

      }
  }

Power of Gradle.

Note : You wont be able to see the process in the left pane of DDMS under device info even the application running in device, if it has debuggable false in build configuration.