我想将我的 apk 上传到 google play store。但它显示这样的错误。
**You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play**
然后我搜索了这个,我收到了更改的建议安卓:可调试=“假”在清单.xml 中。
我就这样变了
清单文件
<application
android:allowBackup="true"
android:debuggable="false"
android:icon="@mipmap/ic_launcher"
android:label="Concall"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
在我的 build.gradle(Module) 中
android {
buildTypes {
debug {
debuggable false
}
}
1.上传Apk到google play store是否足够?
2.如果我在进行此更改后从我的项目文件夹(app>>build>>output>>apk>>apk-debug.apk)中获取apk,那么它将能够在Google Play商店中上传?
不要使用debug变体输出!建个releaseapk。您可以在 Android Studio 中通过菜单“Build”->“Generate Signed APK”来完成此操作。或者,如果您在构建文件中正确配置了签名,则可以执行 ./gradlew assembleRelease 。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)