java.lang.RuntimeException: Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview.

JIRA | Qiu ZhongX | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Impacted Cases ============== All Cordova app Reproduce Test Steps ==================== 1. Build Crodova app with Crosswalk 20.50.533.1 {code} $ git clone https://github.com/corsswalk-project/cordova-plugin-crosswalk-webview.git $ cordova create org.xwalk.foo $ cd org.xwalk.foo $ cordova platform add android $ cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE="embedded" --variable XWALK_VERSION="org.xwalk:xwalk_core_library_beta:20.50.533.1" $ cordova build android {code} 2. Install the apk in platforms/android/build/outputs/apk 3. Launch the app Expected Outcome ================ The app can be launched successfully. Actual Outcome ============== The app crashed. Test Builds =========== ||PackageVersion||Test Date|| Test Device || Result|| |Crosswalk 20.50.533.0|2016.05.31| Nexus 6 | {color:green}PASS{color} | |Crosswalk 20.50.533.1|2016.05.31| Nexus 6 | {color:red}FAIL{color} | Error Info ========== Error log when the Cordova app crashed: {code} 05-31 04:49:22.779 5136 2532 I ActivityManager: Start proc 5088:io.cordova.hellocordova/u0a155 for activity io.cordova.hellocordova/.MainActivity 05-31 04:49:22.831 5088 5088 D XWalkLib: Pre init xwalk core in io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.835 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.835 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.839 5088 5088 D AndroidRuntime: Shutting down VM 05-31 04:49:22.840 5088 5088 E AndroidRuntime: FATAL EXCEPTION: main 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Process: io.cordova.hellocordova, PID: 5088 05-31 04:49:22.840 5088 5088 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview. 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failed to create webview. 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:196) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:192) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:141) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:214) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at io.cordova.hellocordova.MainActivity.onCreate(MainActivity.java:32) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 9 more 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 17 more 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.util.AttributeSet.getAttributeValue(java.lang.String, java.lang.String)' on a null object reference 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.xwalk.core.XWalkView.<init>(XWalkView.java:287) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:55) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:136) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 19 more 05-31 04:49:22.841 5136 16006 W ActivityManager: Force finishing activity io.cordova.hellocordova/.MainActivity 05-31 04:49:22.898 5136 29051 I OpenGLRenderer: Initialized EGL, version 1.4 05-31 04:49:23.092 5136 4965 D NetworkMonitor/NetworkAgentInfo [WIFI () - 378]: Checking http://connectivitycheck.gstatic.com/generate_204 on "EmployeeHotspot", connectivitycheck.gstatic.com=216.58.203.14 05-31 04:49:23.308 3816 6324 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback speaker 05-31 04:49:23.309 3816 6324 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 05-31 04:49:23.317 6877 6889 W art : Suspending all threads took: 8.458ms 05-31 04:49:23.318 3816 6324 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0 05-31 04:49:23.354 5136 5150 W ActivityManager: Activity pause timeout for ActivityRecord{6d592e0 u0 io.cordova.hellocordova/.MainActivity t685 f} {code}

    JIRA | 9 months ago | Qiu ZhongX
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview.
  2. 0

    Impacted Cases ============== All Cordova app Reproduce Test Steps ==================== 1. Build Crodova app with Crosswalk 20.50.533.1 {code} $ git clone https://github.com/corsswalk-project/cordova-plugin-crosswalk-webview.git $ cordova create org.xwalk.foo $ cd org.xwalk.foo $ cordova platform add android $ cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE="embedded" --variable XWALK_VERSION="org.xwalk:xwalk_core_library_beta:20.50.533.1" $ cordova build android {code} 2. Install the apk in platforms/android/build/outputs/apk 3. Launch the app Expected Outcome ================ The app can be launched successfully. Actual Outcome ============== The app crashed. Test Builds =========== ||PackageVersion||Test Date|| Test Device || Result|| |Crosswalk 20.50.533.0|2016.05.31| Nexus 6 | {color:green}PASS{color} | |Crosswalk 20.50.533.1|2016.05.31| Nexus 6 | {color:red}FAIL{color} | Error Info ========== Error log when the Cordova app crashed: {code} 05-31 04:49:22.779 5136 2532 I ActivityManager: Start proc 5088:io.cordova.hellocordova/u0a155 for activity io.cordova.hellocordova/.MainActivity 05-31 04:49:22.831 5088 5088 D XWalkLib: Pre init xwalk core in io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.834 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.835 5088 5088 D XWalkLib: Reserve class class org.xwalk.core.XWalkPreferences to io.cordova.hellocordova.MainActivity 05-31 04:49:22.835 5088 5088 D XWalkLib: Reserve method setValue to io.cordova.hellocordova.MainActivity 05-31 04:49:22.839 5088 5088 D AndroidRuntime: Shutting down VM 05-31 04:49:22.840 5088 5088 E AndroidRuntime: FATAL EXCEPTION: main 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Process: io.cordova.hellocordova, PID: 5088 05-31 04:49:22.840 5088 5088 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview. 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.RuntimeException: Failed to create webview. 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:82) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.makeWebViewEngine(CordovaActivity.java:196) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:192) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:141) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:214) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at io.cordova.hellocordova.MainActivity.onCreate(MainActivity.java:32) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 9 more 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.apache.cordova.CordovaWebViewImpl.createEngine(CordovaWebViewImpl.java:80) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 17 more 05-31 04:49:22.840 5088 5088 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.util.AttributeSet.getAttributeValue(java.lang.String, java.lang.String)' on a null object reference 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.xwalk.core.XWalkView.<init>(XWalkView.java:287) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.crosswalk.engine.XWalkCordovaView.<init>(XWalkCordovaView.java:55) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: at org.crosswalk.engine.XWalkWebViewEngine.<init>(XWalkWebViewEngine.java:136) 05-31 04:49:22.840 5088 5088 E AndroidRuntime: ... 19 more 05-31 04:49:22.841 5136 16006 W ActivityManager: Force finishing activity io.cordova.hellocordova/.MainActivity 05-31 04:49:22.898 5136 29051 I OpenGLRenderer: Initialized EGL, version 1.4 05-31 04:49:23.092 5136 4965 D NetworkMonitor/NetworkAgentInfo [WIFI () - 378]: Checking http://connectivitycheck.gstatic.com/generate_204 on "EmployeeHotspot", connectivitycheck.gstatic.com=216.58.203.14 05-31 04:49:23.308 3816 6324 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback speaker 05-31 04:49:23.309 3816 6324 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 05-31 04:49:23.317 6877 6889 W art : Suspending all threads took: 8.458ms 05-31 04:49:23.318 3816 6324 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0 05-31 04:49:23.354 5136 5150 W ActivityManager: Activity pause timeout for ActivityRecord{6d592e0 u0 io.cordova.hellocordova/.MainActivity t685 f} {code}

    JIRA | 9 months ago | Qiu ZhongX
    java.lang.RuntimeException: Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview.
  3. 0

    "You need to use a theme.appcompat theme" with Theme.AppCompat as theme, Sdk v23

    Stack Overflow | 2 years ago | guillaume_fr
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.android.debug/com.myapp.mobile.activities.HomeActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Same code but app crashes?

    Stack Overflow | 1 year ago | jcrossley
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.f454.jackc.chiropodist/com.f454.jackc.chiropodist.MainActivity}: java.lang.IllegalArgumentException: AppIndex: The android-app URI host must match the package name and follow the format android-app://<package_name>/<scheme>/[host_path]. Provided URI: android-app://com.f454.jackc.chiropody/http/host/path
  6. 0

    navigate horizontally between two different layouts(2 xml files) in android wear

    Stack Overflow | 9 months ago | MJ123
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.wearable/com.example.wearable.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.wearable.view.GridViewPager.setAdapter(android.support.wearable.view.GridPagerAdapter)' on a null object reference

  1. Indri Yunita 4 times, last 2 weeks ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 1 month ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
11 unregistered visitors
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. java.lang.RuntimeException

    Unable to start activity ComponentInfo{io.cordova.hellocordova/io.cordova.hellocordova.MainActivity}: java.lang.RuntimeException: Failed to create webview.

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames