Android “如何修复”;“应用程序未安装”;PhoneGap生成应用程序出错?
我用phoneGap构建了一个Android应用程序;然而,我目前面临一个问题。每当我更新代码、重新构建应用程序并尝试在Android设备上安装它时,我都会收到“应用程序未安装”错误。如果完全删除应用程序并重新安装,则效果良好。但我不希望我的用户删除应用程序并重新安装以获得更新(这是非常不专业的) 我试图更改versionCode和versionName,但没有任何效果 以下是我的config.xml:Android “如何修复”;“应用程序未安装”;PhoneGap生成应用程序出错?,android,cordova,phonegap,Android,Cordova,Phonegap,我用phoneGap构建了一个Android应用程序;然而,我目前面临一个问题。每当我更新代码、重新构建应用程序并尝试在Android设备上安装它时,我都会收到“应用程序未安装”错误。如果完全删除应用程序并重新安装,则效果良好。但我不希望我的用户删除应用程序并重新安装以获得更新(这是非常不专业的) 我试图更改versionCode和versionName,但没有任何效果 以下是我的config.xml: <?xml version='1.0' encoding='utf-8'?> &
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.orcatheapp.orca" version="2.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Orca</name>
<description>
Let The Killer Whale Kill Boredom...
</description>
<author email="omarkhalil.m17@gmail.com" href="omarkhalil.m17@gmail.com">
Omar and Zeyad
</author>
<content src="index.html" />
<preference name="android-minSdkVersion" value="19" />
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<preference name="phonegap-version" value="cli-9.0.0" />
<preference name="Orientation" value="portrait" />
<icon src="www/img/1.png" platform="android" width="57" height="57" density="mdpi" />
</widget>
虎鲸
让虎鲸杀死无聊。。。
奥马尔和泽亚德
此问题是由于您的应用程序id造成的,例如,此行中的com.orcatheapp.orca:
<widget id="com.orcatheapp.orca" version="2.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
当您在PlayStore上有一个新版本时,您的用户可以从Google Play或PlayStore自动下载,请在本例中更改id版本:version=“2.0.5”