Reputation: 161
I am currently unable to install Crosswalk and/or run builds using Cordova because Cordova keeps looking for the config.xml file in the wrong location.
Steps to reproduce:
cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add android
cordova plugin add cordova-plugin-crosswalk-webview
Error: Unhandled "error" event. (Parsing
/cordova/platforms/android/res/xml/config.xml failed)
Note: this path doesn't exist.
The correct path according to the directory/file structure should be:
/cordova/platforms/android/app/src/main/res/xml/config.xml
Is there any way to change the path that Cordova looks for the config.xml file?
Cordova: 8.0.0
Gradle 4.4.1
Ubuntu 16.04.3 LTS
Node: 8.9.3
NPM: 5.6.0
Upvotes: 1
Views: 10068
Reputation: 1
In my case there was an logical error in config.xml Check your config.xml whether are you making any logical mistakes in describing your resources.
Upvotes: 0
Reputation: 1121
In my case,
I incorrectly added GTM resource-file into config.xml like this:
<platform name="android">
<resource-file src="GTM-XXXXXXX.json" target="assets/containers/GTM-XXXXXXX.json" />
I knew because I noticed after saving config.xml, the preview of the file changed to unknown. So, I just removed
<platform name="android">
and moved
<resource-file src="GTM-XXXXXXX.json" target="assets/containers/GTM-XXXXXXX.json" />
to under
<engine name="android"/>
and the problem solved.
Upvotes: 0
Reputation: 663
In my case I did the following:
ionic cordova platform rm android --save
ionic cordova platform add [email protected] --save
Upvotes: 3