I think nearly all cordova plugins are broken when you run an app with crosswalk and livereload in order to do some debugging: ionic run android -l -c -s As you see the deviceready event is never fired.
1 761436 log deviceready has not fired after 5 seconds.
2 761439 log Channel not fired: onCordovaInfoReady
3 761444 log Channel not fired: onFileSystemPathsReady
When I run the android app not served via ionic/livereload ionic run all the plugins and events run as expected so it seems to be a problem really related to the livereload feature.
For now, Iāll do the debugging without crosswalk and just add it before publishing on the store.
Greetings Ionic Team, I am getting the following error when trying to run a Genymotion emulation running a Galaxy S3
Running command: /Users/dwitt/Desktop/MonstercatAppCrosswalk/hooks/after_prepare/010_add_platform_class.js /Users/dwitt/Desktop/MonstercatAppCrosswalk
add to body class: platform-android
Running command: /Users/dwitt/Desktop/MonstercatAppCrosswalk/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/dwitt/Desktop/MonstercatAppCrosswalk
Running command: /Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/cordova/run
ANDROID_HOME=/Applications/Android SDK/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
WARNING : No target specified, deploying to device ā192.168.56.101:5555ā.
Running: /Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/gradlew cdvBuildDebug -b /Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
Downloading http://services.gradle.org/distributions/gradle-2.2.1-all.zip
Exception in thread āmainā java.lang.RuntimeException: java.io.IOException: Invalid Http response
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.io.IOException: Invalid Http response
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1553)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
⦠3 more
/Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true
ERROR running one or more of the platforms: Error: /Users/dwitt/Desktop/MonstercatAppCrosswalk/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project
Enviroment Details:
OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 4.2.0
Ionic CLI Version: 1.3.10
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.0.0
Hey, I had the same issue. I donāt think itās the ānameā field that causes the build to fali, itās āmaxSdkVersionā. It seems like crosswalk script treat the both permissions as a unique permission because one has āthe maxSdkVersionā field defined.
What Iām ended up doing is I forked the plugin thatās defining the āmaxSdkVersionā field and remove the āmaxSdkVersionā field. Then I used the forked version of the plugin on my project.
Iāve looked and it appears to be an issue with the calling of Gradle. When I call āionic run androidā and it gets to the point where it launches gradlew it fails. I manually installed gradle and added it to my path (works by just running gradle) it works. Looking inside the file gradle and gradlew are the exact same, so is there a way for whatever script is running to call grade instead of gradlew?
guys from what I can tell cordova-crosswalk-engine-c0.5/ is using an old apache project which is called org.apache.harmony which statically links to old OpenSSL version and this trigger an issue with google play store.
[update] : the recommended version for crosswalk is v 10+ this will solve the issue
By default i get two separates apks for x86 and ARM7, but how i can combine them? i tried with BUILD_MULTIPLE_APKS=false ionic build android but i get two apks too.
Happy to report success integrating crosswalk on windows. Had to rebuild our project from scratch though, but all appears ok now. Still issues with some plugins not working (toasts etc)