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

前端 未结 5 1615
旧巷少年郎
旧巷少年郎 2020-12-08 14:14

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 debugg         


        
相关标签:
5条回答
  • 2020-12-08 14:46

    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
    
    0 讨论(0)
  • 2020-12-08 14:53

    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'
    
            }
        }
    
    0 讨论(0)
  • 2020-12-08 14:58

    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.

    0 讨论(0)
  • 2020-12-08 15:04

    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.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题