问题
I'm getting below error while trying to upload new APK file.
Upload failed
You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.
回答1:
In my case I had to add android:debuggable="false" into manifest.. Worked even without few days ago.
回答2:
If you're using Android Studio, the simplest way is to open the "Build Variant" toolbar on the left bottom and change it from "Debug" to "Release" then "Build" -> "Generated Signed APK".
回答3:
If you using maven and android-maven-plugin, add this to plugin configuration
<configuration>
<release>true</release>
</configuration>
回答4:
Please note, even if you have a release entry in your gradle build with debuggable false, if debuggable is set to true in the AndroidManifest.xml, it will still fail to upload. Found a random subproject in mine that had it set to true even though the gradle build file was false for all sub projects.
来源:https://stackoverflow.com/questions/19994874/unable-to-upload-new-apk-file-to-android-play-store