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 1639
旧巷少年郎
旧巷少年郎 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条回答
  •  猫巷女王i
    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'
    
            }
        }
    

提交回复
热议问题