Hi again,

I found a workaround, but let me explain the symptom again:

1. Using Eclipse and building via 'Run as Android Application' with the default 'debug.keystore', my XWalkView runs OK.

2. Using Eclipse and building via 'Export Android Application' with my 'Release-key', my XWalkView will throw this exception: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode

3. So I looked up a method to fool Eclipse into using my Release-key as the debug-key by changing its alias/pw. Then I build it via 'Run as Android Application' with my 'mynewdebug-key' and!!! now my XWalkView runs OK.

Sooo... conclusion, my Eclipse is building my APK differently where an APK built via 'Run as...' won't throw that exception and 'Export...' will throw it? Has something to do with the way it packages the XWalk lib differently?

Any feedback as to why this happens would be greatly appreciated! Thank you.

notes:
I am certain that my APK builds with ARM, since the libxwalkcore.so that's built with it reflects the APK's new size as well as the 29mb size of the lib @ data/data/myapp/lib/

My Eclipse is 4.4.0.20140612-0500
Android Development Tools is 23.0.2.1259578
Android SDK is 24.3.2
Android SDK Platform-Tools is 5.1.1/22
Android API up to 22
XWalk lib's build target is 5.0.1/21
MyApp's build target is 4.4.2/19
JRE is 7
XWalk is 13.42.319.11, Android (ARM + x86)/Stable

-Tim

On 2015-06-16 16:14, timliu wrote:
I get this exception when I try to run XWalkView.

Is this related to?
https://crosswalk-project.org/jira/browse/XWALK-3615
https://crosswalk-project.org/jira/browse/XWALK-3779

The STRANGE thing is... if my APK is built with the 'debug key', this
exception does NOT happen.
However! If I build my APK with an 'actual key', this exception
appears! (built via Export > Android Application).

I tried this with both:
Android (ARM + x86), Stable
crosswalk-12.41.296.9
crosswalk-13.42.319.11


Is there a workaround???


Thank you,
-Tim

- I am certain that my APK builds with ARM, since the libxwalkcore.so
that's built with it reflects the 29mb size (@ data/data/myapp/lib/).
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to