Crosswalk with Cordova-Android 7.0 -> Failed to install 'cordova-plugin-crosswalk-webview': Error: Unhandled "error" event. (Parsing platforms/android/res/xml/config.xml failed) #188
Comments
They changed the directory structure of cordova 7.0 so it probably won't work. It should be working with cordova 6.3.0 though. Make sure you clear everything before downgrading. |
Yes @mcfarljw you're right. I tried with cordova 7.0 and it works. So I will change the title of this issue so that it can maybe be fixed. Don't know what the best solution is right now - except stay on 6.3.0. Maybe I start a new crosswalk branch for v7. |
My workaround is as follows.
I hope this solution will be helpful. |
@philoskim Thank you, philoskim, you help me. |
@philoskim: Perfect! :-) |
Thanks @philoskim |
Hi There |
@hiroyui Why don't you try using a code editor like Sublime or VS Code? It'll help you to find the lines more easily. Anyhow, if you decide to stick with notepad you could search for the values (Ctrl + F), but then you need to be very careful and save a backup of the JS file before, in case something goes wrong. |
@periplox thanks i'll try it |
@hiroyui: Periplox is right. You just need a "better" text editor. That will let you see everything much more clear. There are a lot of text editors out there. Some are very professional for regarding language depending expressions but also very overload. I for example use Emeditor since years. That one also regards iE. Javascript and PHP programming styles but is easy to handle. (what a text editor should be of course ;) Best regards |
I committed @philoskim's changes here https://github.com/corrisoft/cordova-plugin-crosswalk-webview You can use it by running:
Note you may need to copy over any config you may have set in package.json/config.xml such as XWALK_VERSION/XWALK_LITEVERSION/etc Normally I would not suggest using a fork of a plugin like this but since Intel has dropped support for Crosswalk and I don't expect and new releases I think this is a decent approach. PS: For those wondering why not just make @philoskim's changes locally: We need to build our apps on a CI server which is headless and needs to work without human intervention. There is a possibility of using some kind of cordova hook to make the above changes but this was faster and easier so I took this route. |
After I had made @philoskim 's changes I got this error when I'm launching the app: "Mismatch of CPU Architecture". Before I had updated to cordova 8 it worked well. |
@yossi787 The same happened to me when I run |
Now that the fix has been merged, will the fix be released soon? Or should I just add the plugin from the master branch? |
@nprail we would like to release it, but would first like to do some testing. However our testing resources are very limited, it would be great if you and anybody else who wants to help could test from master and report here the findings. |
Hello, Could I suggest some modification to the line 35 in update_config.js ? Before:
After:
With this little modification, we are now able to install plugin and build our app. |
Follow-up to e581761 ("fixed compatibility issues with cordova-android@7.0.0"). Further comments in crosswalk-project#188 indicate that hardcoding '/' as the path separator when calling fs.existsSync() does not work well on Windows. Use path.join() everywhere as suggested by @nbinand.
i dont get it.. shouldnt this be open as this still an issue without solution? having exactly same error and could not fix it |
Hello all. I just added this plugin (including the change to fix the incompatibility problem with cordova-android 7) but now I'm not gettin separate/multiple apk's. Any idea? |
Hey guys,
I'm getting this error since few days.
I'm using newest Android Cordova 7.0.0 and also tried with 6.3.
Do you know why this fails?
If I install this on my local computer (not on linux build machine) then everything works fine.
The text was updated successfully, but these errors were encountered: