After upgrading from Crosswalk 1.2.0 to 1.3.1, my Android app now force-closes as it tries to open. Crosswalk 1.2.0 worked fine, but now I can’t revert to that version because I get this error:
$ meteor add crosswalk@=1.2.0
=> Errors while adding packages:
While selecting package versions:
error: No version of crosswalk satisfies all constraints: @=1.2.0, @=1.3.1
Constraints on package "crosswalk":
* crosswalk@=1.2.0 <- top level
* crosswalk@=1.3.1 <- top level
Not sure where else to report this issue… can’t find a GitHub repo for the meteor crosswalk integration and MDG is the package maintainer… so here I am!
Not sure if this will work for you, but I had to modify some crosswalk files to get it to work with the cordova google maps plugin. To do that I had to make it a local package and add it to meteor, which worked. Basically you just download the crosswalk git repo, and copy and paste it into your /private folder. Crosswalk Repo. Then you can add it locally and possibly debug it.
Just to make sure, you did a meteor remove crosswalk before you tried to add it with the 1.2.0 version constraint correct?
The crosswalk package right now is basically just a package.js that references the Crosswalk plugin. Instead, you should be able to just add the plugin directly (meteor add cordova:cordova-plugin-crosswalk-webview@1.2.0).
But I’m interested in finding out why Crosswalk 1.3.1 isn’t working for you. Is there any way you can track this down? Any error messages either during build or runtime? Anything specific you’re doing (other packages you use, etc.) that might cause this?
Thanks for posting the logs. It seems this is actually an issue specifically with setBackgroundColor.
Do you have something like App.setPreference('BackgroundColor', '0xff0000ff') in your mobile-config.js by any chance? That triggers it for me, and when removing it the app runs fine.
The documentation suggests that using CSS (setting background-color on body) would be an alternative.
Removing that pref fixed the issue for me as well. Only reason I had it there was it’s in the example mobile-config.js in the docs. I think it can be removed from that example, since it’s actually setting the background to blue, and I’ve never seen blue in my app
Thanks for pointing out the issue with crosswalk… In my case I couldn’t even build android app anymore I was getting my .tar.gz file but not the release-unsigned.apk , I removed crosswalk and I could build the release-unsigned.apk again but actually the issue was only with the App.setPreference(‘BackgroundColor’… so in the end crosswalk still work but not with this preference.