Crosswalk Integration Beta in Ionic CLI (v1.3.2)

This happened on OSX as well, but a few versions ago for the cli. What version of the cordova CLI do you have?

I am having 1.3.0-beta1

I tested cordova CLI 4.1.2 and now latest 4.2.0 version. However the issue is still not resolved. I also know the problem from older versions of cordova but apparently now it is only a problem if I add the Crosswalk engine to my project. The run command is working fine when I am using the default cordova android project.

Iā€™m getting this two errors when compiling:

:compileDebugJava
/Users/jesus/Savelist/android/platforms/android/src/org/apache/cordova/file/ContentFilesystem.java:47: error: cannot find symbol
this.resourceApi = new CordovaResourceApi(webView.getContext(), webView.pluginManager);
^
symbol: variable pluginManager
location: variable webView of type CordovaWebView
/Users/jesus/Savelist/android/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java:800: error: cannot find symbol
FileUtils filePlugin = (FileUtils)webView.pluginManager.getPlugin(ā€œFileā€);
^
symbol: variable pluginManager
location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED

Could it be because the cordova core plugins are not updated?

Iā€™m getting ā€œThe connection to the server was unsuccessfulā€ most of the time.
Once the app loaded but still got the error after a while.

I get this error after install Crosswalk on my project:

My System informations

image

+1. Removing the crosswalk the splash screen work perfectlyā€¦ :frowning:

This is something that will need to be changed on the cordova side of things. The cordova team is working on this.

Great job guys!

Build is working good for me. The only problem Iā€™m facing now is with the FacebookConnectPlugin which is undefined when Iā€™m calling login(). Anyone having the same problem?

2 Likes

Just upgraded and re-built our app with Crosswalk, it built on the first try. This is amazing, the speed difference on my Android 4.1.2 phone is incredible, testing it side-by-side with an iPhone 6, itā€™s just as fast (our app isnā€™t very demanding), while before it would stutter and chug!

Thereā€™s one issue with an image not displaying that Iā€™ll have to look into. Iā€™m not sure if the problem lies with Crosswalk, or with something we did (most likely this)/ The image is within the apk, and appears when using the Phonegap Developer app. The Splash screen also does not show, just a white page, but I canā€™t find the splash.png in the .apk, so this is probably my fault as well.

Is there anything I can do about the file size? I realize Crosswalk will add ~20MB or so to the .apk, but Iā€™d like to minimize the size as much as possible. The installed size on my phone is about 60MB.

Thanks! These past few updates have been incredible.

Yup, weā€™re working on the file size.
Right now its bundling both x86 and arm7 binaries so in the next release we will be separating those by default

As for the splash screen

I say WOW! My app is really fluid now in my Moto G with Android 4.4!!! It feels very good. My build size is 36mb and my instaled app is 65mb. Hope you can fix that. I :heart: u

You can change the version number in config.xml or simply uninstall the the app from your device then try again. If there is no old install to reference then the test will pass.

yes, thanks. Still this isnā€™t a problem when using the normal build so I reported it

On the issue of app sizes, what do you guys think about this - RE:Crosswalk - Enabling the Android Move To SD Card Feature

Feel free to chime in. Thanks

Thanks for this typ. Halved the size of my .apk!

Hi guys, cross-posting a question I just asked that I think is related to this topic

Iā€™m having the same issue. The only hack fix Iā€™ve found is to do the following if you want to remove and re-add the Android platform:

~ ionic platform rm android
~ ionic browser rm crosswalk
~ ionic platform add android
~ ionic browser crosswalk

have to re-add crosswalk too after some time. dont know when it happens. The error says, that i have not the right environment or os or something like that

The CLI has been update to included some bug fixes and improvements.

Please update your CLIs

2 Likes