Log日志如下:
06-21 10:12:52.495: E/Trace(2682): error opening trace file: No such file or directory (2) 06-21 10:12:52.723: E/AndroidRuntime(2682): FATAL EXCEPTION: main 06-21 10:12:52.723: E/AndroidRuntime(2682): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ionicframework.myapp1274288/com.ionicframework.myapp1274288.MainActivity}: java.lang.RuntimeException: Failed to create webview. 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread.access$600(ActivityThread.java:165) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.os.Handler.dispatchMessage(Handler.java:107) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.os.Looper.loop(Looper.java:194) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread.main(ActivityThread.java:5407) 06-21 10:12:52.723: E/AndroidRuntime(2682): at java.lang.reflect.Method.invokeNative(Native Method) 06-21 10:12:52.723: E/AndroidRuntime(2682): at java.lang.reflect.Method.invoke(Method.java:525) 06-21 10:12:52.723: E/AndroidRuntime(2682): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:838) 06-21 10:12:52.723: E/AndroidRuntime(2682): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605) 06-21 10:12:52.723: E/AndroidRuntime(2682): at dalvik.system.NativeStart.main(Native Method) 06-21 10:12:52.723: E/AndroidRuntime(2682): Caused by: java.lang.RuntimeException: Failed to create webview. 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:83) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:192) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:188) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:136) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:210) 06-21 10:12:52.723: E/AndroidRuntime(2682): at com.ionicframework.myapp1274288.MainActivity.onCreate(MainActivity.java:32) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.Activity.performCreate(Activity.java:5150) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150) 06-21 10:12:52.723: E/AndroidRuntime(2682): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315) 06-21 10:12:52.723: E/AndroidRuntime(2682): ... 11 more 06-21 10:12:52.723: E/AndroidRuntime(2682): Caused by: java.lang.reflect.InvocationTargetException 06-21 10:12:52.723: E/AndroidRuntime(2682): at java.lang.reflect.Constructor.constructNative(Native Method) 06-21 10:12:52.723: E/AndroidRuntime(2682): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:81) 06-21 10:12:52.723: E/AndroidRuntime(2682): ... 19 more 06-21 10:12:52.723: E/AndroidRuntime(2682): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.crosswalk.engine.XWalkCordovaView.setGlobalPrefs(XWalkCordovaView.java:43) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:50) 06-21 10:12:52.723: E/AndroidRuntime(2682): at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:56) 06-21 10:12:52.723: E/AndroidRuntime(2682): ... 22 more 06-21 10:12:52.723: E/AndroidRuntime(2682): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode 06-21 10:12:52.723: E/AndroidRuntime(2682): ... 29 more 06-21 10:12:52.855: E/AppErrorDialog(563): Failed to get ILowStorageHandle instance 06-21 10:12:55.476: E/SurfaceFlinger(129): getDefaultDisplay: id=2 is not a valid default display id
时间: 2024-10-19 04:22:31