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

You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play-Upload apk to google play

我想将我的 apk 上传到 google 播放 store.but 它会像这样显示错误。

**You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play**

然后我搜索了这个,我收到了更改 android:debuggable="false" 的建议manifast.xml.

我是这样改的

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(模块)

android {
buildTypes {
    debug {
        debuggable false
    }
}

1.is 是否足以将 Apk 上传到 google Play 商店?

2.if 我从我的项目文件夹中获取 apk(app>>build>>output>>apk>>apk-debug.apk) 在此更改之后比之后它可以上传google 玩商店??

不要使用 debug 变体输出!构建一个 release apk。您可以在 Android Studio 中转到菜单构建 -> 生成签名 APK 来完成此操作。或者通过执行 ./gradlew assembleRelease 如果你已经正确配置了构建文件中的签名。

我 运行 遇到了这个错误,我的应用程序没有在任何地方引用 debuggable。经过一些搜索,我发现我的 release 构建类型中不小心有 testCoverageEnabled true

release {
    testCoverageEnabled true
    ...
}

删除它解决了问题。

我遇到了同样的问题。不知不觉我一直在

debuggable true in release buildType

buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            debuggable true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }

改成false后。它工作正常。

buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            debuggable false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }
    }

这应该是将 Apk 上传到 Playstore 的标志。不需要发布版本。如果你想测试你的 qa 构建,你可以做 ./gradlew assembleQa 有旗帜

minifyEnabled true
debuggable false
shrinkResources true
testCoverageEnabled = false

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

中是 debuggable = true

当我没有select“签名”version.In 签名版本,select 发布部署时,我收到了这个警告。

.

此功能也可以从清单文件中控制,从那里禁用

android:debuggable="false