Ionic build android after last update

I’m trying to do the same steps as I usually do to build one app for android using crosswalk but after the last ionic update (I also updated cordova and node runtime) the app is not working on a device. With the emulator there is no problem.

When I run this

adb -d logcat : *:S

The following is in the output:

E/AndroidRuntime(28360): FATAL EXCEPTION: main
E/AndroidRuntime(28360): Process: com.ionicframework.vetsnearme722083, PID: 2836
0
E/AndroidRuntime(28360): java.lang.ExceptionInInitializerError
E/AndroidRuntime(28360): at java.lang.Class.classForName(Native Method)
E/AndroidRuntime(28360): at java.lang.Class.forName(Class.java:251)
E/AndroidRuntime(28360): at java.lang.Class.forName(Class.java:216)
E/AndroidRuntime(28360): at org.apache.cordova.CordovaActivity.makeWebVie
w(CordovaActivity.java:222)
E/AndroidRuntime(28360): at org.apache.cordova.CordovaActivity.init(Cordo
vaActivity.java:156)
E/AndroidRuntime(28360): at org.apache.cordova.CordovaActivity.loadUrl(Co
rdovaActivity.java:237)
E/AndroidRuntime(28360): at com.ionicframework.vetsnearme722083.MainActiv
ity.onCreate(MainActivity.java:32)
E/AndroidRuntime(28360): at android.app.Activity.performCreate(Activity.j
ava:5248)
E/AndroidRuntime(28360): at android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:1110)
E/AndroidRuntime(28360): at android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2162)
E/AndroidRuntime(28360): at android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:2257)
E/AndroidRuntime(28360): at android.app.ActivityThread.access$800(Activit
yThread.java:139)
E/AndroidRuntime(28360): at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1210)
E/AndroidRuntime(28360): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/AndroidRuntime(28360): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(28360): at android.app.ActivityThread.main(ActivityThrea
d.java:5086)
E/AndroidRuntime(28360): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(28360): at java.lang.reflect.Method.invoke(Method.java:5
15)
E/AndroidRuntime(28360): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime(28360): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:601)
E/AndroidRuntime(28360): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(28360): Caused by: java.lang.RuntimeException: java.lang.Runtim
eException: Use SharedXWalkView if you want to support shared mode
E/AndroidRuntime(28360): at org.xwalk.core.ReflectionHelper.handleExcepti
on(ReflectionHelper.java:233)
E/AndroidRuntime(28360): at org.xwalk.core.ReflectionHelper.handleExcepti
on(ReflectionHelper.java:237)
E/AndroidRuntime(28360): at org.xwalk.core.ReflectionHelper.init(Reflecti
onHelper.java:132)
E/AndroidRuntime(28360): at org.xwalk.core.ReflectionHelper.loadClass(Ref
lectionHelper.java:199)
E/AndroidRuntime(28360): at org.xwalk.core.XWalkPreferences.setValue(XWal
kPreferences.java:112)
E/AndroidRuntime(28360): at org.crosswalk.engine.XWalkCordovaWebView.(XWalkCordovaWebView.java:635)
E/AndroidRuntime(28360): … 21 more
E/AndroidRuntime(28360): Caused by: java.lang.RuntimeException: Use SharedXWalkV
iew if you want to support shared mode
E/AndroidRuntime(28360): … 26 more

Also running the following command doesn’t work. It stays on “Removing crosswalk browser” and nothing happens.

ionic browser rm crosswalk

List of plugins used

ionic plugins -l:

  • com.ionic.keyboard 1.0.3 “Keyboard”
  • org.apache.cordova.camera 0.3.4 “Camera”
  • org.apache.cordova.console 0.2.12 “Console”
  • org.apache.cordova.engine.crosswalk 0.0.1-dev “Crosswalk Engine”
  • org.apache.cordova.geolocation 0.3.11 “Geolocation”
  • org.apache.cordova.splashscreen 1.0.1-dev “Splashscreen”
  • org.crosswalk.engine 0.0.1-dev “Crosswalk Engine”

And before running ionic build android I added the facebook plugin because I always one error about the APP_ID and APP_NAME not being set but they are. Also tried removing splashscreen plugin.

ionic info

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.1.1

Has anyone experienced a problem with the last ionic-cli or cordova update?

I just tried one new blank project and the same result. Steps:

ionic start example blank
cd example
ionic platform add android
ionic browser add crosswalk
ionic build android

The app runs in the emulator but not on the device.

Smartphone

Platform: Android
Versión: 4.4.4
Model: XT1032 & Moto G

ionic info

OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 4.2.0
Ionic Version: 1.0.0-beta.14
Ionic CLI Version: 1.3.10
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.1.1

Have you noted this in the main forum post?
Can you also open an issue for this on the cli repo

Thanks for your response.

The main forum post is this one, right? Well, I haven’t found anything about it yet, but I keep looking.

The issue on the cli repo was opened.

Thanks again!

We need to use now the arm build instead of the x86. It’s weird because we were using the x86 version since we started using crosswalk without any problems. The issue is closed since it looks like the error is not related to ionic-clic.