I'm trying to build an android app by using Cordova. However, after I created the project, added platform android, and import it into Android Studio. I met some problems with the config.xml. I didn't change anything but I still get this error.
我正在尝试使用Cordova构建一个Android应用程序。但是,在我创建项目后,添加了平台android,并将其导入Android Studio。我遇到了config.xml的一些问题。我没有改变任何东西,但我仍然得到这个错误。
It says URI is not registered for xmlns:cdv.
它说URI没有注册xmlns:cdv。
The entire xml file is this:
整个xml文件是这样的:
<?xml version='1.0' encoding='utf-8'?>
<widget id="xxx.xxx.xxx" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="loglevel" value="DEBUG" />
<feature name="Whitelist">
<param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" />
<param name="onload" value="true" />
</feature>
<allow-intent href="market:*" />
<name>xxxx</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="view/index.html" />
<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:*" />
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
<param name="onload" value="true" />
</feature>
<platform name="android">
<icon src="res/drawable-ldpi/icon.png" density="ldpi" />
<icon src="res/android-mdpi/icon.png" density="mdpi" />
<icon src="res/android-hdpi/icon.png" density="hdpi" />
<icon src="res/android-xhdpi/icon.png" density="xhdpi" />
</platform>
</widget>
1 个解决方案
#1
0
I just ignore this error. It seems that it doesn't have any bad influences. The app can still be running.
我只是忽略了这个错误。它似乎没有任何不良影响。该应用仍然可以运行。
#1
0
I just ignore this error. It seems that it doesn't have any bad influences. The app can still be running.
我只是忽略了这个错误。它似乎没有任何不良影响。该应用仍然可以运行。