安卓:"配置不能公布"同时上传APK Play商店 [英] Android: "configuration cannot be published" while Uploading APK to Play Store

查看:152
本文介绍了安卓:"配置不能公布"同时上传APK Play商店的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要帮助使用Android Play商店的问题,同时要更新我们的应用我见过。

Need help with an Android Play Store issue I've seen while trying to update our app.

当APK上传成功后出现的问题,下面的消息显示出来:

The problem appears when the apk upload is done, and the following message shows up:

此配置不能公布,原因如下(S):
  禁止从在14-18范围在范围API级别API级别的设备升级19+应该从10版降级到9版本,这将发生时
  含有任何[小,正常,大,超大]的屏幕布局和
  包含所有[android.hardware.LOCATION,android.hardware.location.GPS,android.hardware.screen.PORTRAIT,android.hardware.TOUCHSCREEN,android.hardware.WIFI]的特点。
  有些设备有资格运行多个APK。在这种情况下,设备将接收到的APK具有较高版本code。

This configuration cannot be published for the following reason(s): It is forbidden that a device upgrading from API levels in range 14-18 to API levels in range 19+ should downgrade from version 10 to version 9, which would occur when Screen layouts containing any of [small, normal, large, xlarge] and Features containing all of [android.hardware.LOCATION, android.hardware.location.GPS, android.hardware.screen.PORTRAIT, android.hardware.TOUCHSCREEN, android.hardware.WIFI]. Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.

什么是有些奇怪的是,Play商店中列出了我们支持的API水平14-18,而我们的SDK设置如下:

What is somewhat strange is that the Play Store lists our supported API levels as 14-18, whereas our SDK settings are as follows:

/* build.gradle */
...
android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "<my app id>"
        minSdkVersion 14
        targetSdkVersion 21
    }
...

/* AndroidManifest.xml */
...
android:versionCode="10"
    android:versionName="1.1.1" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="21" />
...

另外一个(也许是次要的)问题是,下列权限列下的APK细节Play商店的标签,尽管我们没有设置这个在我们的清单文件:结果
android.permission.CHANGE_WIFI_STATE

Another (perhaps minor) issue is that the following permission is listed under the APK DETAILS tab of the Play Store despite that we don't set this in our manifest file:
android.permission.CHANGE_WIFI_STATE

当我们切换编译/目标SDK版本19(我们previously一样),Android Studio中正确地抱怨说我们没有使用最新的Andr​​oid版本。即使这样,我们仍然看到了上传问​​题。

When we switch the build/target SDK version to 19 (as we previously did), Android Studio correctly complains that we are not using the latest Android version. Even then, we still see the upload problem.

也许有什么东西在我们的配置别的这是错误的?
在此先感谢您的帮助!

Might there be something else in our configuration that is wrong? Thanks in advance for your assistance!

推荐答案

好吧,我终于设法解决这个问题。

OK, I finally managed to solve the issue.


  1. 用于AAPT看怎么Play商店将解析APK

  2. 发现,我使用套外,封闭源代码库在其清单库
  3. 系统maxSdkVersion = 18
  4. 获得一个版本违规库不具有最大的SDK设置。

  5. 重新编译应用程序,并成功上传到Play商店。

  1. Used aapt to see how Play Store would parse the apk
  2. Found out that an external, closed-source library that I'm using sets a maxSdkVersion=18 in its manifest library
  3. Obtained a version of the offending library that doesn't have the max SDK setting.
  4. Recompiled the app and successfully uploaded to the play store.

这是替代步骤3将是覆盖maxSdkVersion在我的主AndroidManifest.xml文件,或<一个href=\"http://stackoverflow.com/questions/13937123/disable-manifest-merger-in-android-gradle-build]\">Disable在Android的摇篮清单合并构建在的gradle,而Android工作室是不是在这一方面非常合作。

An alternative to step 3 would have been to override the maxSdkVersion in my main AndroidManifest.xml file, or Disable Manifest Merger in Android Gradle Build in gradle, but Android Studio wasn't very cooperative on that front.

不可否认,在Play商店的错误信息是非常模糊的,并且可以更好的措辞。

Admittedly, the error message on Play Store is rather cryptic and could be worded better.

这篇关于安卓:&QUOT;配置不能公布&QUOT;同时上传APK Play商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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