无法上传更新APK到谷歌Play商店 [英] Unable to Upload Updated APK to Google Play Store

查看:1106
本文介绍了无法上传更新APK到谷歌Play商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同样的问题被张贴<一href="http://stackoverflow.com/questions/19994874/unable-to-upload-new-apk-file-to-android-play-store">here但给出的答案对我来说没有工作。我已上传到前门店,现在我不能更新我的应用程序,包括一些bug修复。每当我试着上传的APK我得到这个错误

  

上传失败。

     

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

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

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

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

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

        &LT;用途-SDK
            安卓的minSdkVersion =7
            机器人:targetSdkVersion =18/&GT;

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

            &LT;活动
                机器人:名称=com.aventuracctv.aventurafibercalculator.MainActivity
                机器人:标签=@字符串/ APP_NAME&GT;

                &LT;意向滤光器&gt;
                    &lt;作用机器人:名称=android.intent.action.MAIN/&GT;

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

解决方案

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

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

 &lt;应用
            机器人:可调试=假

...更多属性
 

如果你正确添加这个属性和谷歌播放还是拒绝您的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"
    }
}

这篇关于无法上传更新APK到谷歌Play商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆