Skip to content

Instantly share code, notes, and snippets.

@loonix
Last active July 30, 2018 09:05
Show Gist options
  • Save loonix/a70ef802ef8906adb177c0d405f52e2f to your computer and use it in GitHub Desktop.
Save loonix/a70ef802ef8906adb177c0d405f52e2f to your computer and use it in GitHub Desktop.
Failed to install 'cordova-plugin-crosswalk-webview': Error: Unhandled "error" event. (Parsing ...\platforms\android\res\xml\config.xml failed)
If the version is 8 then follow these steps.
$ cordova -v
8.0.0
Modify the line 33--34 in your_project/plugins/cordova-plugin-crosswalk-webview/hooks/update_config.js
// platformConfigurationFile = path.join(androidPlatformDir,
// 'res', 'xml', 'config.xml'),
platformConfigurationFile = path.join(androidPlatformDir,
'app', 'src', 'main', 'res', 'xml', 'config.xml'),
Modify the line 32 in your_project/platforms/cordova-plugin-crosswalk-webview/*-xwalk.gradle
// def xml = file("res/xml/config.xml").getText()
def xml = file("src/main/res/xml/config.xml").getText()
After the modifications, I succeeded in $ cordova build android.
please check the following link for more info:
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/issues/188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment