java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tennistemple/com.tennistemple.MainActivity}: java.lang.RuntimeException: Failed to create webview.

Apache's JIRA Issue Tracker | Tom Nonk | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I got some Play Store crashes report. Not a lot, but a few since i upgrade to cordova 5.1.1 and cordova-android 4.1.0 using cordova-plugin-crosswalk-webview 1.3.0. Here is the detailed report: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tennistemple/com.tennistemple.MainActivity}: java.lang.RuntimeException: Failed to create webview. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.access$600(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failed to create webview. at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82) at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:202) at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:198) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:147) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220) at com.tennistemple.MainActivity.onCreate(MainActivity.java:32) at android.app.Activity.performCreate(Activity.java:5122) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80) ... 19 more Caused by: junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode at junit.framework.Assert.fail(Assert.java:50) at org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180) at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:105) at org.crosswalk.engine.XWalkCordovaView.setGlobalPrefs(XWalkCordovaView.java:37) at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:48) at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:56) ... 22 more I hope that is enough to track the issue. Thanks by advance

    Apache's JIRA Issue Tracker | 2 years ago | Tom Nonk
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tennistemple/com.tennistemple.MainActivity}: java.lang.RuntimeException: Failed to create webview.
  2. 0

    junit.framework.AssertionFailedError: App crashes on webview creations for certain devices

    GitHub | 2 years ago | markharding
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.minds.mobile/com.minds.mobile.MainActivity}: java.lang.RuntimeException: Failed to create webview.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 1068#154168856

    GitHub | 1 year ago | andybbtt11
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
  5. 0

    GitHub comment 1073#155807333

    GitHub | 1 year ago | ezramorse
    junit.framework.AssertionFailedError: Please have your activity extend XWalkActivity for shared mode
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. junit.framework.AssertionFailedError

    Please have your activity extend XWalkActivity for shared mode

    at junit.framework.Assert.fail()
  2. JUnit
    Assert.fail
    1. junit.framework.Assert.fail(Assert.java:50)
    1 frame
  3. org.xwalk.core
    XWalkPreferences.setValue
    1. org.xwalk.core.XWalkCoreWrapper.initEmbeddedMode(XWalkCoreWrapper.java:180)
    2. org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:105)
    2 frames
  4. org.crosswalk.engine
    XWalkWebViewEngine.<init>
    1. org.crosswalk.engine.XWalkCordovaView.setGlobalPrefs(XWalkCordovaView.java:37)
    2. org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:48)
    3. org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:56)
    3 frames
  5. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    2 frames
  6. org.apache.cordova
    CordovaActivity.loadUrl
    1. org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80)
    2. org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:202)
    3. org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:198)
    4. org.apache.cordova.CordovaActivity.init(CordovaActivity.java:147)
    5. org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:220)
    5 frames
  7. com.tennistemple
    MainActivity.onCreate
    1. com.tennistemple.MainActivity.onCreate(MainActivity.java:32)
    1 frame
  8. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5122)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
    5. android.app.ActivityThread.access$600(ActivityThread.java:156)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:153)
    9. android.app.ActivityThread.main(ActivityThread.java:5299)
    9 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame