Unable to upload new APK file to Android Play store

与世无争的帅哥 提交于 2019-12-17 18:16:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!