无法上传更新APK到谷歌Play商店商店、上传、到谷歌、APK

2023-09-05 11:13:52 作者:一身祖宗味儿

同样的问题被张贴here但给出的答案对我来说没有工作。我已上传到前门店,现在我不能更新我的应用程序,包括一些bug修复。每当我试着上传的APK我得到这个错误

  

上传失败。

     

您上传了一个调试的APK。出于安全原因,你需要禁用的调试,才可以发表在谷歌播放。

我已经尝试添加机器人:可调试=假,以我的表现,但我仍然得到了同样的信息。

我目前使用Android的Studio来生成我签名的APK。

编辑这里是我的Andr​​oidManifest.xml

 < XML版本=1.0编码=UTF-8&GT?;
    <舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
        包=com.aventuracctv.aventurafibercalculator
        安卓版code =3
        机器人:VERSIONNAME =1.2
        机器人:可调试=假>

        <用途-SDK
            安卓的minSdkVersion =7
            机器人:targetSdkVersion =18/>

        <应用
            机器人:allowBackup =真
            机器人:图标=@可绘制/ app_icon
            机器人:标签=光纤计算器
            机器人:主题=@风格/ AppTheme>

            <活动
                机器人:名称=com.aventuracctv.aventurafibercalculator.MainActivity
                机器人:标签=@字符串/ APP_NAME>

                <意向滤光器>
                    <作用机器人:名称=android.intent.action.MAIN/>

                    <类机器人:名称=android.intent.category.LAUNCHER/>
                &所述; /意图滤光器>
            < /活性GT;
        < /用途>
    < /舱单>
 

解决方案

看来你现在必须明确设置机器人:可调试=假。 (至少与Android的工作室0.3.6。)

调试的是在应用程序标签的属性。 (不是明显的标记。)

 <应用
            机器人:可调试=假

...更多属性
 
google Play商店的apk文件怎么下载到电脑上 google Play商店apk文件下载方法详解 飞翔教程

如果你正确添加这个属性和谷歌播放还是拒绝您的APK,尝试修改build.gradle设置自己的密钥调试

  signingConfigs {
    调试{
        storeFile文件(我的-密钥库file.jks)
        storePassword我的密码
        keyAlias​​我的别名
        keyPassword我的密码
    }
}
 

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

Upload failed

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

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

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

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>

解决方案

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

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

<application
            android:debuggable="false"

... more attributes

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"
    }
}

 
精彩推荐
图片推荐