我总是被拒绝将我的应用程序放在Google Play商店中。我想我被拒绝是因为我无法更改应用的版本号。我尝试了字面意思,我总是收到这封电子邮件:
当我在cmd中输入 npm info cordova版本时,我会回来" 6.3.1"。
当我在cmd中输入 phonegap -v 时,我会回来" 6.3.1"。
我将config.xml属性更改为
<widget id="example" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<preference name="phonegap-version" value="6.3.0" />
我将AndroidManifest.xml属性更改为
<manifest android:hardwareAccelerated="true" android:versionCode="10001" android:versionName="1.0.1" package="be.matroesjkas" xmlns:android="http://schemas.android.com/apk/res/android">
我将此添加到我的build.gradle文件
android {
defaultConfig {
versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode"))
applicationId privateHelpers.extractStringFromManifest("package")
if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}
versionCode 2
versionName "1.1"
}
我删除了android平台并用phonegap读取了它。
重建时,phonegap构建网站上的版本号始终保持在1.0.0。