导致此Android APK的原因上传错误:“不可升级的APK” [英] What causes this Android APK Upload error: "Non-upgradable APK"

查看:1119
本文介绍了导致此Android APK的原因上传错误:“不可升级的APK”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发布了一个新版本(相同的目标SDK),Google向我展示了一个Android版APK这个错误:

如果我继续(我学会了很难的方法),那么当前没有一个用户可以升级到这个版本。我必须恢复代码,增加内部版本号并重建APK以回滚到可用版本。



然而,我无法弄清楚为什么谷歌会显示我这个错误。请注意,0支持的Android设备是一个红鲱鱼 - 这是Google Play在过去24小时内的一个已知问题 - 如果您发布APK,则会显示实际的设备数量。



请给我一些线索,告诉我有什么不同或导致此错误的原因:

非 - 可升级的APK
警告
此APK的任何用户都无法升级到此版本中添加的任何新APK。
TIP
确保所有新APK都添加到此版本中。


<解决方案我能解决这个问题: - $ / b>

问题出在版本代码 - 我确定您尚未在您的应用中定义任何版本代码,并通过此公式生成该代码:

  versionCode = MAJOR * 10000 + MINOR * 100 + PATCH 

但是有时候自动生成的最新版本的版本代码值比以前的版本要小在你的情况10403< 104028),这就是为什么它显示non-upgradab您需要做的是: -



在您的config.xml标签中添加版本代码如下所示: -

  android-versionCode =104280

104280将适合您,因为它比旧版本更大。



现在发布它并没有任何错误。



感谢Sanny


I have an Android APK in the Google Play store with an Target SDK of 23.

I have released a new version (same target SDK) and Google shows me this error:

If I proceed (I learnt the hard way) then none of the current users can upgrade to this version. I had to restore the code, increment the build number and rebuild the APK to "rollback" to a usable version.

However, I cannot work out WHY google is showing me this error. Note, the "0 Supported Android Devices" is a red-herring - it is a known issue in Google Play in the last 24 hours - if you publish the APK the real number of devices is shown.

Please give me some leads on what the difference is or what causes this error:

Non-upgradable APK WARNING None of the users of this APK will be able to upgrade to any of the new APKs added in this release. TIP Ensure that all your new APKs are added to this release.

解决方案

I got able to resolve this issue:-

The issue was with the versioncode - I am sure you have not defined any version code in your App and it is getting generated by this formula:

 versionCode = MAJOR * 10000 + MINOR * 100 + PATCH

But sometimes auto generated versioncode value of the latest release becomes smaller than the previous release (in your case 10403 < 104028) and that's why it shows non-upgradable APK.

What you need to do is:-

In your config.xml in tag add versioncode like below:-

android-versionCode="104280" 

104280 will work for you as it is greater than older version.

Now get it published without any error.

Thanks Sanny

这篇关于导致此Android APK的原因上传错误:“不可升级的APK”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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