使用cordova 4,crosswalk-cordova-10.39.235.9-x86和Android SDK 19
应用程序在启动时崩溃,并在logcat中使用以下日志:
D / AndroidRuntime(7208):关闭虚拟机
W / dalvikvm(7208):threadid = 1:线程退出与未捕获的异常(组= 0x41caeda0)
E / AndroidRuntime(7208):FATAL EXCEPTION:main
E / AndroidRuntime(7208):进程:myapp.cqa,PID:7208
E / AndroidRuntime(7208):java.lang.ExceptionInInitializerError
E / AndroidRuntime(7208):在org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:295)
E / AndroidRuntime(7208):在org.apache.cordova.CordovaActivity.init(CordovaActivity.java:348)
E / AndroidRuntime(7208):在org.apache.cordova.CordovaActivity.init(CordovaActivity.java:323)
E / AndroidRuntime(7208):在myapp.cqa.CordovaApp.onCreate(CordovaApp.java:31)
E / AndroidRuntime(7208):android.app.Activity.performCreate(Activity.java:5451)
E / AndroidRuntime(7208):在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
E / AndroidRuntime(7208):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358)
E / AndroidRuntime(7208):在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2452)
E / AndroidRuntime(7208):android.app.ActivityThread.access $900(ActivityThread.java:172)
E / AndroidRuntime(7208):at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1302)
E / AndroidRuntime(7208):在android.os.Handler.dispatchMessage(Handler.java:102)
E / AndroidRuntime(7208):在android.os.Looper.loop(Looper.java:136)
E / AndroidRuntime(7208):在android.app.ActivityThread.main(ActivityThread.java:5586)
E / AndroidRuntime(7208):java.lang.reflect.Method.invokeNative(Native Method)
E / AndroidRuntime(7208):在java.lang.reflect.Method.invoke(Method.java:515)
E / AndroidRuntime(7208):com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:1268)
E / AndroidRuntime(7208):在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
E / AndroidRuntime(7208):at dalvik.system.NativeStart.main(Native Method)
E / AndroidRuntime(7208):引起的:java.lang.RuntimeException:java.lang.RuntimeException:如果要支持共享模式,请使用SharedXWalkView
E / AndroidRuntime(7208):在org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233)
E / AndroidRuntime(7208):在org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237)
E / AndroidRuntime(7208):在org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132)
E / AndroidRuntime(7208):在org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199)
E / AndroidRuntime(7208):在org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112)
E / AndroidRuntime(7208):在org.apache.cordova.CordovaWebView.< clinit>(CordovaWebView.java:890)
E / AndroidRuntime(7208):… 18更多
E / AndroidRuntime(7208):导致:java.lang.RuntimeException:如果要支持共享模式,请使用SharedXWalkView
E / AndroidRuntime(7208):… 23更多
任何想法为什么它崩溃?