无法构建cordova android应用程序
今天我想在google play store中更新我的应用程序,但出现以下错误: My config.xml看起来像:无法构建cordova android应用程序,android,cordova,hybrid-mobile-app,phonegap-cli,Android,Cordova,Hybrid Mobile App,Phonegap Cli,今天我想在google play store中更新我的应用程序,但出现以下错误: My config.xml看起来像: <?xml version="1.0" encoding="utf-8" standalone="no"?> <widget id="com.bla.blabla.bla" version="1.3.8" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cord
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<widget
id="com.bla.blabla.bla"
version="1.3.8"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0"
xmlns:gap="http://phonegap.com/ns/1.0">
<name>MyApp</name>
<author>MyName</author>
<preference name="AutoHideSplashScreen" value="false" />
<content src="index.html"/>
<access origin="*"/>
<allow-navigation href="*" />
<!-- START: Android and iOS Quirks -->
<preference name="FadeSplashScreen" value="false"/>
<!-- START: Android section -->
<preference name="android-minSdkVersion" value="17" />
<!-- android quirks -->
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
<platform name="android">
<splash src="www/resources/device/android/splash/land/hdpi.png" density="land-hdpi"/>
<splash src="www/resources/device/android/splash/land/hdpi.png" density="land-ldpi"/>
<splash src="www/resources/device/android/splash/land/hdpi.png" density="land-mdpi"/>
<splash src="www/resources/device/android/splash/land/hdpi.png" density="land-xhdpi"/>
<splash src="www/resources/device/android/splash/port/hdpi.png" density="port-hdpi"/>
<splash src="www/resources/device/android/splash/port/ldpi.png" density="port-ldpi"/>
<splash src="www/resources/device/android/splash/port/mdpi.png" density="port-mdpi"/>
<splash src="www/resources/device/android/splash/port/xhdpi.png" density="port-xhdpi"/>
<icon src="www/resources/device/android/ldpi.png" density="ldpi" />
<icon src="www/resources/device/android/mdpi.png" density="mdpi" />
<icon src="www/resources/device/android/hdpi.png" density="hdpi" />
<icon src="www/resources/device/android/xhdpi.png" density="xhdpi" />
</platform>
<!-- END: Android section -->
</widget>
call cordova platform add android
call cordova plugin add cordova-plugin-device
call cordova plugin add cordova-plugin-file
call cordova plugin add cordova-plugin-file-transfer
call cordova plugin add cordova-plugin-network-information
call cordova plugin add cordova-plugin-splashscreen
call cordova plugin add cordova-plugin-inappbrowser
call cordova plugin add cordova-plugin-whitelist
call cordova plugin add cordova-plugin-file-opener2
call cordova build android
有什么问题吗?几个月前,这个脚本起作用了。我在网上搜索了很多,但没有找到解决办法。大多数情况下,我读到的解决方案是编辑AndroidManifest.xml,但我在cordova,而不是本地android应用程序开发中,因此我无法编辑AndroidManifest.xml。好,现在我通过安装特定版本的cordova解决了这个问题:
npm install -g cordova@5.4.0
在安装Corova 6.0.0之前。我不知道从5.4.0到6.0.0发生了什么变化