android - Error inflating WebView XML -


i found crash report on crashlytics in samsung sm g920f (galaxy s6), version 5.1.1 (on other devices didn't retrieve same error).

java.lang.runtimeexception: unable start activity componentinfo{com.mypackage/com.mypackage.myactivity}:  android.view.inflateexception: binary xml file line #21: error inflating class android.webkit.webview 

this layout of webview (the style empty style):

<?xml version="1.0" encoding="utf-8"?> <webview xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/my_webview_id"     style="@style/myemptystyle"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:background="@android:color/transparent" /> 

this how include in activity layout:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent">      <include layout="@layout/my_webview_layout"         android:visibility="gone"/> </linearlayout> 

the error reported xml error provided code (simplified). single report happened 1 time on device, can explain me why?

edit (complete stacktrace)

java.lang.runtimeexception: unable start activity componentinfo{com.mypackage/com.mypackage.myactivity}: android.view.inflateexception: binary xml file line #21: error inflating class android.webkit.webview        @ android.app.activitythread.performlaunchactivity(activitythread.java:3119)        @ android.app.activitythread.handlelaunchactivity(activitythread.java:3218)        @ android.app.activitythread.access$1000(activitythread.java:198)        @ android.app.activitythread$h.handlemessage(activitythread.java:1676)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:145)        @ android.app.activitythread.main(activitythread.java:6837)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused by: android.view.inflateexception: binary xml file line #21: error inflating class android.webkit.webview        @ android.view.layoutinflater.createview(layoutinflater.java:640)        @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:55)        @ android.view.layoutinflater.oncreateview(layoutinflater.java:689)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:748)        @ android.view.layoutinflater.rinflate(layoutinflater.java:813)        @ android.view.layoutinflater.rinflate(layoutinflater.java:821)        @ android.view.layoutinflater.parseinclude(layoutinflater.java:933)        @ android.view.layoutinflater.rinflate(layoutinflater.java:809)        @ android.view.layoutinflater.inflate(layoutinflater.java:511)        @ android.view.layoutinflater.inflate(layoutinflater.java:415)        @ com.mypackage.drawer.fragments.myfragment.createcontentview(myfragment.java:50)        @ com.externalpackage.app.externalfragment.oncreateview(externalfragment.java:115)        @ com.externalpackage.app.locationexternalfragment.oncreateview(locationexternalfragment.java:65)        @ com.mypackage.drawer.fragments.myfragment.oncreateview(myfragment.java:55)        @ android.app.fragment.performcreateview(fragment.java:2114)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:904)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1082)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1064)        @ android.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:1884)        @ android.app.activity.performcreatecommon(activity.java:6492)        @ android.app.activity.performcreate(activity.java:6521)        @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1120)        @ android.app.activitythread.performlaunchactivity(activitythread.java:3072)        @ android.app.activitythread.handlelaunchactivity(activitythread.java:3218)        @ android.app.activitythread.access$1000(activitythread.java:198)        @ android.app.activitythread$h.handlemessage(activitythread.java:1676)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:145)        @ android.app.activitythread.main(activitythread.java:6837)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused by: java.lang.reflect.invocationtargetexception        @ java.lang.reflect.constructor.newinstance(constructor.java)        @ java.lang.reflect.constructor.newinstance(constructor.java:288)        @ android.view.layoutinflater.createview(layoutinflater.java:614)        @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:55)        @ android.view.layoutinflater.oncreateview(layoutinflater.java:689)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:748)        @ android.view.layoutinflater.rinflate(layoutinflater.java:813)        @ android.view.layoutinflater.rinflate(layoutinflater.java:821)        @ android.view.layoutinflater.parseinclude(layoutinflater.java:933)        @ android.view.layoutinflater.rinflate(layoutinflater.java:809)        @ android.view.layoutinflater.inflate(layoutinflater.java:511)        @ android.view.layoutinflater.inflate(layoutinflater.java:415)        @ com.mypackage.drawer.fragments.myfragment.createcontentview(myfragment.java:50)        @ com.externalpackage.app.externalfragment.oncreateview(externalfragment.java:115)        @ com.externalpackage.app.locationexternalfragment.oncreateview(locationexternalfragment.java:65)        @ com.mypackage.drawer.fragments.myfragment.oncreateview(myfragment.java:55)        @ android.app.fragment.performcreateview(fragment.java:2114)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:904)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1082)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1064)        @ android.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:1884)        @ android.app.activity.performcreatecommon(activity.java:6492)        @ android.app.activity.performcreate(activity.java:6521)        @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1120)        @ android.app.activitythread.performlaunchactivity(activitythread.java:3072)        @ android.app.activitythread.handlelaunchactivity(activitythread.java:3218)        @ android.app.activitythread.access$1000(activitythread.java:198)        @ android.app.activitythread$h.handlemessage(activitythread.java:1676)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:145)        @ android.app.activitythread.main(activitythread.java:6837)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused by: android.util.androidruntimeexception: android.content.pm.packagemanager$namenotfoundexception: com.google.android.webview        @ android.webkit.webviewfactory.getfactoryclass(webviewfactory.java:174)        @ android.webkit.webviewfactory.getprovider(webviewfactory.java:109)        @ android.webkit.webview.getfactory(webview.java:2202)        @ android.webkit.webview.ensureprovidercreated(webview.java:2197)        @ android.webkit.webview.setoverscrollmode(webview.java:2256)        @ android.view.view.<init>(view.java:3843)        @ android.view.view.<init>(view.java:3954)        @ android.view.viewgroup.<init>(viewgroup.java:513)        @ android.widget.absolutelayout.<init>(absolutelayout.java:55)        @ android.webkit.webview.<init>(webview.java:553)        @ android.webkit.webview.<init>(webview.java:498)        @ android.webkit.webview.<init>(webview.java:481)        @ android.webkit.webview.<init>(webview.java:468)        @ java.lang.reflect.constructor.newinstance(constructor.java)        @ java.lang.reflect.constructor.newinstance(constructor.java:288)        @ android.view.layoutinflater.createview(layoutinflater.java:614)        @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:55)        @ android.view.layoutinflater.oncreateview(layoutinflater.java:689)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:748)        @ android.view.layoutinflater.rinflate(layoutinflater.java:813)        @ android.view.layoutinflater.rinflate(layoutinflater.java:821)        @ android.view.layoutinflater.parseinclude(layoutinflater.java:933)        @ android.view.layoutinflater.rinflate(layoutinflater.java:809)        @ android.view.layoutinflater.inflate(layoutinflater.java:511)        @ android.view.layoutinflater.inflate(layoutinflater.java:415)        @ com.mypackage.drawer.fragments.myfragment.createcontentview(myfragment.java:50)        @ com.externalpackage.app.externalfragment.oncreateview(externalfragment.java:115)        @ com.externalpackage.app.locationexternalfragment.oncreateview(locationexternalfragment.java:65)        @ com.mypackage.drawer.fragments.myfragment.oncreateview(myfragment.java:55)        @ android.app.fragment.performcreateview(fragment.java:2114)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:904)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1082)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1064)        @ android.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:1884)        @ android.app.activity.performcreatecommon(activity.java:6492)        @ android.app.activity.performcreate(activity.java:6521)        @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1120)        @ android.app.activitythread.performlaunchactivity(activitythread.java:3072)        @ android.app.activitythread.handlelaunchactivity(activitythread.java:3218)        @ android.app.activitythread.access$1000(activitythread.java:198)        @ android.app.activitythread$h.handlemessage(activitythread.java:1676)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:145)        @ android.app.activitythread.main(activitythread.java:6837)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) caused by: android.content.pm.packagemanager$namenotfoundexception: com.google.android.webview        @ android.app.applicationpackagemanager.getpackageinfo(applicationpackagemanager.java:167)        @ android.webkit.webviewfactory.getfactoryclass(webviewfactory.java:146)        @ android.webkit.webviewfactory.getprovider(webviewfactory.java:109)        @ android.webkit.webview.getfactory(webview.java:2202)        @ android.webkit.webview.ensureprovidercreated(webview.java:2197)        @ android.webkit.webview.setoverscrollmode(webview.java:2256)        @ android.view.view.<init>(view.java:3843)        @ android.view.view.<init>(view.java:3954)        @ android.view.viewgroup.<init>(viewgroup.java:513)        @ android.widget.absolutelayout.<init>(absolutelayout.java:55)        @ android.webkit.webview.<init>(webview.java:553)        @ android.webkit.webview.<init>(webview.java:498)        @ android.webkit.webview.<init>(webview.java:481)        @ android.webkit.webview.<init>(webview.java:468)        @ java.lang.reflect.constructor.newinstance(constructor.java)        @ java.lang.reflect.constructor.newinstance(constructor.java:288)        @ android.view.layoutinflater.createview(layoutinflater.java:614)        @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:55)        @ android.view.layoutinflater.oncreateview(layoutinflater.java:689)        @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:748)        @ android.view.layoutinflater.rinflate(layoutinflater.java:813)        @ android.view.layoutinflater.rinflate(layoutinflater.java:821)        @ android.view.layoutinflater.parseinclude(layoutinflater.java:933)        @ android.view.layoutinflater.rinflate(layoutinflater.java:809)        @ android.view.layoutinflater.inflate(layoutinflater.java:511)        @ android.view.layoutinflater.inflate(layoutinflater.java:415)        @ com.mypackage.drawer.fragments.myfragment.createcontentview(myfragment.java:50)        @ com.externalpackage.app.externalfragment.oncreateview(externalfragment.java:115)        @ com.externalpackage.app.locationexternalfragment.oncreateview(locationexternalfragment.java:65)        @ com.mypackage.drawer.fragments.myfragment.oncreateview(myfragment.java:55)        @ android.app.fragment.performcreateview(fragment.java:2114)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:904)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1082)        @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1064)        @ android.app.fragmentmanagerimpl.dispatchactivitycreated(fragmentmanager.java:1884)        @ android.app.activity.performcreatecommon(activity.java:6492)        @ android.app.activity.performcreate(activity.java:6521)        @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1120)        @ android.app.activitythread.performlaunchactivity(activitythread.java:3072)        @ android.app.activitythread.handlelaunchactivity(activitythread.java:3218)        @ android.app.activitythread.access$1000(activitythread.java:198)        @ android.app.activitythread$h.handlemessage(activitythread.java:1676)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:145)        @ android.app.activitythread.main(activitythread.java:6837)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1404)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1199) 

it seems strange ocurred when app inflating webview, whatever.

for namenotfoundexception: com.google.android.webview can deduce problem google packages (the user using custom rom , not having them installed.)

if had more info terminal error i'll go it, have see proportion of users/users_with_this_error have. see if it's useful work in issue or not.

from breakline's comment: check out post, looks kinda same issue: namenotfoundexception webview


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -