使用Supply上传时出现Google Api错误

时间:2016-11-25 23:38:08

标签: android cordova fastlane

尝试使用Fastlane Supply上传Cordova版本失败,并显示以下错误:

  

Google Api错误:multiApkShadowedActiveApk:此应用的版本10125   无法通过任何设备下载,因为他们都会收到APK   使用更高版本的代码。

我更新到cordova-android 6.0.0后可能已经开始发生了。不能确定。

我可能补充的一点是,我没有在项目的任何地方指定10125版本的版本。我只将version标记内的widget属性更新为X.X.X版本样式。

1 个答案:

答案 0 :(得分:0)

It turns out, cordova-android changed how it calculates the versionCode out of the version value inside the widget tag.

The solution is to manually specify versionCode:

<widget version="1.1.26" android-versionCode="101260" ... >