You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play-Upload apk to google play

48,208

Solution 1

Don't use the debug variant output! Build a release apk. You can do that in Android Studio by going to the menu Build -> Generate Signed APK. Or by executing ./gradlew assembleRelease if you have properly configured signing in the build file.

Solution 2

I ran into this error and my application did not reference debuggable anywhere. After a little bit of searching, I found that I accidentally had testCoverageEnabled true in my release build type.

release {
    testCoverageEnabled true
    ...
}

Removing this resolved the issue.

Solution 3

I was having the same problem. Unknowingly I kept

debuggable true in release buildType

buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            debuggable true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }

After changed to false. Its working fine.

buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            debuggable false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }

Solution 4

In my build.gradle file, I had debuggable = false and I was wondering why I'm getting this issue. later I found that it was debuggable = true in my AndroidManifest.xml file's application tag

Solution 5

This should be the flags for uploading the Apk to Playstore. Not needed to be release build. If you want to test your qa build, you can do ./gradlew assembleQa with flags

minifyEnabled true
debuggable false
shrinkResources true
testCoverageEnabled = false
Share:
48,208
RushDroid
Author by

RushDroid

Coder | Problem SOLVER | IOT | MOBILE Enthusiasm | Developer | Leader |

Updated on October 10, 2021

Comments

  • RushDroid
    RushDroid over 2 years

    I Want to upload my apk to google play store.but its Show me error like this.

    **You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play**
    

    and than i searched for this and i receive suggetion to change the android:debuggable="false" in manifast.xml.

    I changed like this

    manifast.xml

     <application
        android:allowBackup="true"
        android:debuggable="false"
        android:icon="@mipmap/ic_launcher"
        android:label="Concall"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme" >
    

    and in my build.grable(Module)

    android {
    buildTypes {
        debug {
            debuggable false
        }
    }
    

    1.is the enough for upload Apk to google play store?

    2.if i pick up apk from my project folder(app>>build>>output>>apk>>apk-debug.apk) after this change than after it will able to upload in google play store??