伙计们!
我正在尝试更新我的安卓应用程序,但我得到了以下错误消息:上传错误信息
当我试图在我的设备上运行这个应用程序时,我会得到以下错误:
故障INSTALL_FAILED_VERSION_DOWNGRADE 您正在尝试使用已经安装的较低的versionCode安装apk。要么卸载应用程序,要么增加versionCode。
我已经在AndroidManifest.xml中增加了版本代码(请参阅下面代码的第一行),但仍然会出现相同的错误。
<manifest android:hardwareAccelerated="true" android:versionCode="10101" android:versionName="1.1.1" package="com.ionicframework.fitme375349" xmlns:android="http://schemas.android.com/apk/res/android">这个应用程序是一个离子项目。
有什么帮助吗?不知道还能做什么。
发布于 2017-02-08 18:51:16
伙计们!
谢谢你的帮助和支持。
在某个时刻,我将Ionic config.xml中的版本设置为1.0.638。生成的androidManifest.xml具有versionCode 100638。当我将离子配置文件中的版本提高到1.0.639时,AndroidManifest文件中的AndroidManifest设置为10639 (不知道原因)。这就是我在Google Play中出错的原因。在尝试了许多不同的版本号之后,我最终将Ionic配置文件中的版本设置为10.0.639,在AndroidManifest.xml中生成的AndroidManifest.xml为100639。这个版本被google play所接受。
发布于 2017-02-02 19:32:36
不要忘记更改应用程序级别的build.gradle文件。
每次更新时,您都必须增加应用程序的版本代码。将版本代码设置为10102
<manifest android:hardwareAccelerated="true" android:versionCode="10102" android:versionName="1.1.1" package="com.ionicframework.fitme375349" xmlns:android="http://schemas.android.com/apk/res/android">https://stackoverflow.com/questions/42010383
复制相似问题