无法将更新的 APK 上传到 Google Play 商店

无法将更新的 APK 上传到 Google Play 商店

问题描述:

同样的问题发布在此处 但给出的答案对我不起作用.我之前已经上传到商店,现在我无法更新我的应用程序以包含一些错误修复.每当我尝试上传 APK 时,我都会收到此错误

The same issue was posted here but the answer given didn't work for me. I've uploaded to the store before and now I can't update my app to include some bug fixes. Whenever I try to upload the APK I get this error

上传失败

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

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

我已经尝试将 Android:debuggable="false" 添加到我的清单中,但我仍然收到相同的消息.

I've tried adding Android:debuggable="false" to my manifest but I'm still getting the same message.

我目前正在使用 Android Studio 生成我的签名 APK.

I'm currently using Android Studio to generate my signed APK.

编辑这里是我的 AndroidManifest.xml

Edit Here's my AndroidManifest.xml

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.aventuracctv.aventurafibercalculator"
        android:versionCode="3"
        android:versionName="1.2"
        android:debuggable="false">

        <uses-sdk
            android:minSdkVersion="7"
            android:targetSdkVersion="18" />

        <application
            android:allowBackup="true"
            android:icon="@drawable/app_icon"
            android:label="Fiber Calculator"
            android:theme="@style/AppTheme">

            <activity
                android:name="com.aventuracctv.aventurafibercalculator.MainActivity"
                android:label="@string/app_name" >

                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    </manifest>

看来您现在必须显式设置 android:debuggable=false.(至少使用 Android Studio 0.3.6.)

It seems you now have to explicitly set android:debuggable=false. (At least with the Android Studio 0.3.6.)

Debuggable 是 application 标记的一个属性.(不是清单标签.)

Debuggable is a property of the application tag. (Not the manifest tag.)

<application
            android:debuggable="false"

... more attributes

如果您已正确添加此属性但 Google Play 仍拒绝您的 APK,请尝试修改 build.gradle 以设置您自己的调试密钥

If you've added this attribute properly and Google Play still rejects your APK, try modifying build.gradle to set your own key for debug

signingConfigs {
    debug {
        storeFile file("my-keystore-file.jks")
        storePassword "my-password"
        keyAlias "my-alias"
        keyPassword "my-password"
    }
}