android - 您上传了一个可调试的 APK。出于安全原因,您需要先禁用调试,然后才能将其发布到 Google Play-Upload apk to google play

标签 android upload google-play apk

我想将我的 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/

相关文章:

android - 将 ARM-v7 和 x86 的单独 APK 上传到 Google Play

java - 如何从多个 java 类(单个包)正确创建/使用 .aar 或 .jar 文件以在 android studio 的不同项目中使用它

Android - 资源链接失败/链接引用失败

java - 无法在 Android TextView 中调用公共(public)方法

php - 本地主机上 Laravel 8 中的存储链接问题

javascript - 如何在CKEditor中显示上传进度?

android - Google IAB V3 多设备缓存

android - Android Gradle依赖项冲突和资源重复值

html - 尝试使用 appscripts 将多个文件上传到 Google 云端硬盘

android - 支持屏幕问题?