我想将我的 apk 上传到 google play store。但是它的 Show me 错误是这样的。
**You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play**
然后我搜索了这个,我收到了更改 manifast.xml 中的 android:debuggable="false" 的建议。
我变成了这样
manifast.xml
<application
android:allowBackup="true"
android:debuggable="false"
android:icon="@mipmap/ic_launcher"
android:label="Concall"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
在我的 build.grable(Module) 中
android {
buildTypes {
debug {
debuggable false
}
}
1.上传Apk到google play store就够了吗?
2.如果我在此更改后从我的项目文件夹(app>>build>>output>>apk>>apk-debug.apk)中获取 apk,而不是在它能够上传到 google play store 之后??
最佳答案
不要使用 debug 变体输出!构建一个发布 apk。您可以通过转到菜单 Build -> Generate Signed APK 在 Android Studio 中执行此操作。或者通过执行 ./gradlew assembleRelease 如果您在构建文件中正确配置了签名。
关于android - 您上传了一个可调试的 APK。出于安全原因,您需要先禁用调试,然后才能将其发布到 Google Play-Upload apk to google play,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32263949/