如何修复PhoneGap Build应用程序的“未安装应用程序”错误?

问题描述 投票:0回答:1

我使用phoneGap Build构建了一个Android应用;但是,我目前面临一个问题。每当我更新代码,重建应用程序并尝试将其安装在我的Android设备上时,都会出现“未安装应用程序”错误。如果完全删除该应用程序并重新安装,则可以正常运行。但是我不希望我的用户删除该应用程序并重新安装它以获取更新(这是非常不专业的)

我试图更改versionCode和versionName,但没有任何效果。

这是我的config.xml:

<?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="[email protected]" href="[email protected]">
      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>

android cordova phonegap
1个回答
0
投票

此问题是由于您的应用程序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上拥有新版本时,您的用户可以从GooglePlay或PlayStore自动下载,请记住在此示例中更改ID版本:version="2.0.5"

© www.soinside.com 2019 - 2024. All rights reserved.