Crosswalk Integration Beta in Ionic CLI (v1.3.2)


#56

Is it true that not all Cordova plugins are supported by the Crosswalk engine?
I found this list of compatible pugins but it seems already out of date: https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-Cordova-for-Android:-plugin-compatibility-lists

In my application at least the org.apache.cordova.statusbar plugin is not working.

/Alex


#57

@grahamharper This may be an issue with the plugin itself, as the cordova-android version we are using for crosswalk is a unreleased version.

@Alex Same thing as above. Since we are using Cordova-Android 4.0, which isn’t released yet, not every plugin is guaranteed to work. When the cordova team release 4.0 officially, then the core plugins will be updated.


#58

@grahamharper - I’m not sure what spurs that error.

Does your project.properties file still have the references for those added projects?


#59

Yea it does. It looks like they were added to the list of dependencies in build.gradle too.


#60

Looks awesome.
Few problem though :

  • Back button does not close modal
  • SocialSharing plugin does not work
  • Icon and splashscreen are gone ( I already had crosswalk so this might be a conf thing)
  • Getting error “0 333147 error Uncaught Error: Error calling method on NPObject., http://192.168.0.14:8100/cordova.js, Line: 924” but that does not stop the app ( might be useful though )
  • CLI does not detect that crosswalk is already installed ( you can run add crosswalk many time it’ll re download ). Very minor issue I know :slight_smile:

How can we check if crosswalk is installed ( and see version )


#61

@nicraboy - sorry for the late response.

If you set an ENV setting or pass a setting in-line, it will produce two, yes.

BUILD_MULTIPLE_APKS=true


Idk why this starts giving two different apks
#62

I wanted to use this in an existing project and everything went fine until :dexDebug

Nothing special, I updated ionic, added crosswalk, and ‘ionic run android’ and this happened:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
  	/home/jbert/Downloads/BackUp/adt-bundle-linux-x86_64-20140321/sdk/build-tools/19.1.0/dx --dex --no-optimize --output /home/jbert/Lurk.it/platforms/android/build/intermediates/dex/debug /home/jbert/Lurk.it/platforms/android/build/intermediates/classes/debug /home/jbert/Lurk.it/platforms/android/build/intermediates/pre-dexed/debug/classes-6e759a31b25e339459239fba407d51b13a79c090.jar /home/jbert/Lurk.it/platforms/android/build/intermediates/pre-dexed/debug/xwalk_core_library_java_app_part-5505ad56b460ad3d2d8fb98c95948a3074f0ee29.jar /home/jbert/Lurk.it/platforms/android/build/intermediates/pre-dexed/debug/classes-1d7fb91b0e1f52ca74c544554ef33127855f6af0.jar /home/jbert/Lurk.it/platforms/android/build/intermediates/pre-dexed/debug/xwalk_core_library_java_library_part-3456c4845d4ac487b650109ec90b4dac03b2393a.jar /home/jbert/Lurk.it/platforms/android/build/intermediates/pre-dexed/debug/xwalk_core_library_java-b7033f6d1eeabc59c7444bfa16cb665a2e377ccf.jar
  Error Code:
  	2
  Output:
  	
  	UNEXPECTED TOP-LEVEL EXCEPTION:
  	com.android.dex.DexException: Multiple dex files define Lcom/googlecode/eyesfree/braille/display/BrailleDisplayProperties$1;
  		at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
  		at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
  		at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
  		at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
  		at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
  		at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
  		at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
  		at com.android.dx.command.dexer.Main.run(Main.java:230)
  		at com.android.dx.command.dexer.Main.main(Main.java:199)
  		at com.android.dx.command.Main.main(Main.java:103)

My bad if the formatting is bad, I’m on my phone.


#63

@mhartington, thanks for your quick response, can we make it possible for user to integrate different version of Crosswalk which they want to?


#64

As far as different versions per android version, not sure how that would work.
But as far as saying crosswalk 8, 9, 10, or 11, yes that will be available soon


#65

Good news! @mhartington, thank you so much!


#66
  • What went wrong:
    Execution failed for task ‘:preBuild’.

failed to find Build Tools revision 20.0.0


#67

Missing one of the key attributes ‘action#name,category#name’ on element intent-filter at AndroidManifest.xml:15:13


#68

would you fixed it???


#69

/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/AndroidManifest.xml:35:5 Error:
Missing ‘name’ key attribute on element uses-permission at AndroidManifest.xml:35:5
/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/AndroidManifest.xml:36:5 Error:
Missing ‘name’ key attribute on element uses-permission at AndroidManifest.xml:36:5
/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/AndroidManifest.xml:37:5 Error:
Missing ‘name’ key attribute on element uses-permission at AndroidManifest.xml:37:5
/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/AndroidManifest.xml:0:0 Error:
Validation failed, exiting


#70

fixed it

by change name to android:name


#71

/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/res/values/multiimagechooser_strings_en.xml:7: Error: “discard” is not translated in “de” (German), “es” (Spanish), “fr” (French), “hu” (Hungarian), “ja” (Japanese), “ko” (Korean) [MissingTranslation]
Cancel

by ionic build android --release


#72

How exactly would you do this? Is just by passing ‘BUILD_MULTIPLE_ARCHS=true’ as a flag to ‘ionic build or ionic run’?


#74

by ionic build android --release


#75

when I run in genymotion it go’s very well, but I cant build with release the error is

/Users/game-netease/Desktop/ios/webapp/rm3.0/rm3_mobile/platforms/android/res/values/multiimagechooser_strings_en.xml:7: Error: “discard” is not translated in “de” (German), “es” (Spanish), “fr” (French), “hu” (Hungarian), “ja” (Japanese), “ko” (Korean) [MissingTranslation]
Cancel


#76

fixed it build success
add translatable=“false” in string.xml