java.lang.RuntimeException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web856

  • via Unknown by Tom Nonk,
  • Stack trace

    • 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    AdrienAdrien
    9 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    CasperCasper
    2 times, last one
    27 more bugmates