CrossWalk Webview不会启动URL

我正在使用Cordova CrossWebViewEngine并创buildXWalkCordovaView来在webview中启动我的应用程序。 但它是抛出一个错误说

02-01 20:53:17.097: E/AndroidRuntime(2776): FATAL EXCEPTION: main 02-01 20:53:17.097: E/AndroidRuntime(2776): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.securitySampleApp/com.abc.securitySampleApp.MainActivity}: java.lang.UnsupportedOperationException: load 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.access$600(ActivityThread.java:130) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.os.Handler.dispatchMessage(Handler.java:99) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.os.Looper.loop(Looper.java:137) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.main(ActivityThread.java:4745) 02-01 20:53:17.097: E/AndroidRuntime(2776): at java.lang.reflect.Method.invokeNative(Native Method) 02-01 20:53:17.097: E/AndroidRuntime(2776): at java.lang.reflect.Method.invoke(Method.java:511) 02-01 20:53:17.097: E/AndroidRuntime(2776): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 02-01 20:53:17.097: E/AndroidRuntime(2776): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 02-01 20:53:17.097: E/AndroidRuntime(2776): at dalvik.system.NativeStart.main(Native Method) 02-01 20:53:17.097: E/AndroidRuntime(2776): Caused by: java.lang.UnsupportedOperationException: load 02-01 20:53:17.097: E/AndroidRuntime(2776): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:57) 02-01 20:53:17.097: E/AndroidRuntime(2776): at org.xwalk.core.XWalkView.load(XWalkView.java:281) 02-01 20:53:17.097: E/AndroidRuntime(2776): at com.abc.securitySampleApp.MainActivity.onCreate(MainActivity.java:55) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.Activity.performCreate(Activity.java:5008) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 02-01 20:53:17.097: E/AndroidRuntime(2776): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 02-01 20:53:17.097: E/AndroidRuntime(2776): ... 11 more 

这是我的代码启动应用程序

  CordovaWebViewEngine cordovawebviewEngine = super.makeWebViewEngine(); XWalkWebViewEngine xwe = (XWalkWebViewEngine) cordovawebviewEngine; XWalkCordovaView swv = (XWalkCordovaView) xwe.getView(); swv.load(launchUrl,null); 

有没有人遇到与Cordova Cross-Walk类似的错误或问题?

编辑:我试着改变我的代码来获取XWalkView

 xWalkWebView = new XWalkView(this.getApplicationContext(), this); xWalkWebView.load(launchUrl, null); 

我仍然得到相同的exceptionjava.lang.UnsupportedOperationException

更新 – 02/09/2016我改变了我的主要活动来扩展XWalkActivity ,现在我必须在onXWalkReady上实现一个方法 – 下面的代码如下

 @Override protected void onXWalkReady() { xWalkWebView.load(launcUrl, null); } 

我没有像我在主要问题中提到的那样得到相同的错误,但是我得到以下错误

 Error while loading asset assets/icudtl.dat: java.io.FileNotFoundException: assets/icudtl.dat glUtilsParamSize: unknow param Fatal signal 11 (SIGSEGV) 

Solutions Collecting From Web of "CrossWalk Webview不会启动URL"