您上传了可调试的APK。出于安全原因,您需要先禁用调试功能,然后才能将其发布在Google Play中。将APK上传到Google Play。>

问题描述 投票:20回答:5

我想将我的APK上传到Google Play商店。但是这样的“向我显示错误”。

**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商店吗?

2。如果我在更改后比从我的项目文件夹(app >> build >> output >> apk >> apk-debug.apk中选择apk能够在Google Play商店中上传?

我需要知道这件事预先感谢。

我想将我的APK上传到Google Play商店。但是这样的“向我显示错误”。 **您上传了可调试的APK。出于安全原因,您需要先禁用调试功能,然后才能在Google中发布调试信息...

android upload google-play apk
5个回答
18
投票

不要使用debug

变体输出!生成一个release

6
投票

我遇到了同样的问题。我不知不觉地保持了>

在发布版本中,debuggable true true


4
投票

我遇到此错误,我的应用程序未在任何地方引用debuggable。经过一番搜索,我发现我的testCoverageEnabled true构建类型不小心包含了release

release {
    testCoverageEnabled true
    ...
}

2
投票

在我的build.gradle文件中,我有debuggable = false,我想知道为什么会遇到这个问题。后来我发现它在我的AndroidManifest.xml文件的应用程序标记中是debuggable = true


1
投票

[这应该是将apk上传到Playstore的标志。不需要发布版本。如果要测试您的Qa构建,可以执行./gradlew assembleQa带有标志

minifyEnabled是true可调试假收缩资源真testCoverageEnabled = false

© www.soinside.com 2019 - 2024. All rights reserved.