Error Inflating Class Android.webkit.webview
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error inflating class android.webkit.WebView happens sporadically in production up vote 6 down vote favorite 1 my application is on Google Play and it runs fine on most of devices (thousands of users). But in rare cases (fraction of percent of daily active users) I get Error inflating class android.webkit.WebView when I inflate layout for my fragment in onCreateView method. Full stack trace is following: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tapmedia.tapito/com.tapmedia.tapito.LockscreenActivity}: android.view.InflateException: Binary XML file line #20: Error inflating class android.webkit.WebView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2694) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2759) at android.app.ActivityThread.access$900(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5944) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class android.webkit.WebView at android.view.LayoutInflater.createView(LayoutInflater.java:640) at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55) at android.view.LayoutInflater.onCreateView(LayoutInflater.java:689) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:748) at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) at android.view.LayoutInflater.rInflate(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:511) at android.view.LayoutInflater.inflate(LayoutInflater.java:415) at com.tapmedia.tapito.WebViewFragment.onCreateView(SourceFile:84) at android.support.v4.app.Fragment.performCreateView(SourceFile:1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us http://stackoverflow.com/questions/31732169/error-inflating-class-android-webkit-webview-happens-sporadically-in-production Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error http://stackoverflow.com/questions/25708825/error-inflating-class-android-webkit-webview-when-loading-webview inflating class android.webkit.WebView when loading webview up vote 3 down vote favorite I've never encountered this problem before, and my setup is pretty much the same as previous occasions. The error its self is: android.view.InflateException: Binary XML file line #7: Error inflating class android.webkit.WebView I am launching a WebView in an XML file like so:
help others android.view.InflateException: Binary XML https://samebug.io/exceptions/533472/android.view.InflateException/binary-xml-file-line-7-error-inflating?soft=false file line #7: Error inflating class android.webkit.WebView blogspot.com | 7 months ago 0 mark Android Stack OverFlow: Android : Error inflating class android.webkit.WebView when loading https://teamtreehouse.com/community/webviewfactory-error-loading-provider webview blogspot.com | 7 months ago android.view.InflateException: Binary XML file line #7: Error inflating class android.webkit.WebView find similars com.android.webview Android Platform Java RT Android error inflating Platform Android 0 0 mark WebView in android wear is giving errors when running Stack Overflow | 2 years ago | Rarster java.lang.UnsupportedOperationException find similars com.android.webview Android Platform 0 0 mark findViewById() throws exception using emulator, but not for devices Stack Overflow | 2 years ago | error inflating class user3801940 java.lang.UnsupportedOperationException find similars com.android.webview Android Platform 0 Speed up your debug routine! Automated exception search integrated into your IDE Test Samebug Integration for Android Studio 0 mark Problems lauching Sencha App on Android emulator Stack Overflow | 2 years ago | halbano java.lang.UnsupportedOperationException find similars com.android.webview Android Platform 0 0 mark Android app failing to start missing Chromium WebView Stack Overflow | 2 years ago | tiggles java.lang.UnsupportedOperationException find similars com.android.webview Android Platform 0 See more 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 Test Samebug Integration for Android Studio Root Cause Analysis java.lang.UnsupportedOperationException No message provided at com.android.webview.nullwebview.NullWebViewFactoryProvider.createWebView() 0 similar com.android.webview NullWebViewFactoryProvider.createWebView com.android.webview.nullwebview.NullWebViewFactoryProvider.createWebView(NullWebViewFactoryProvider.java:41) 0 similar 1 frame Android Platform WebView.
emulator during the "Opening a Webpage Within the App" class? When I click on one of my list items my app crashes and the logcat shows the following: ```05-19 11:08:15.866: E/WebViewFactory(590): error loading provider 05-19 11:08:15.866: E/WebViewFactory(590): java.lang.ClassNotFoundException: com.android.webview.chromium.WebViewChromiumFactoryProvider 05-19 11:08:15.866: E/WebViewFactory(590): at java.lang.Class.classForName(Native Method) 05-19 11:08:15.866: E/WebViewFactory(590): at java.lang.Class.forName(Class.java:251) 05-19 11:08:15.866: E/WebViewFactory(590): at java.lang.Class.forName(Class.java:216) 05-19 11:08:15.866: E/WebViewFactory(590): at android.webkit.WebViewFactory.getFactoryClass(WebViewFactory.java:115) 05-19 11:08:15.866: E/WebViewFactory(590): at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:85)``` And also this may make sense to someone as well: ```05-19 11:08:16.016: E/AndroidRuntime(590): FATAL EXCEPTION: main 05-19 11:08:16.016: E/AndroidRuntime(590): Process: com.JLaird.blogreader, PID: 590 05-19 11:08:16.016: E/AndroidRuntime(590): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.JLaird.blogreader/com.JLaird.blogreader.BlogWebViewActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class android.webkit.WebView``` I hope this is something I can fix and not another difference between today's Android tools and last year's when the class was recorded. Michael Ikhane 2,390 Points Michael Ikhane Michael Ikhane 2,390 Points >2y ago Hi Joey, Could you paste the log beyond the last line "ComponentInfo...". There should be line number in BlogWebViewActivity.java that triggered the error. I suspect an error in the xml layout file for that activity. Joey Laird 8,537 Points Joey Laird Joey Laird 8,537 Points >2y ago Hi Michael, Here is the rest. Just an FYI the app works fine when I test on my phone so this isn't a major problem but if by any chance you have any idea based on the additional information below it would be good to know. Thanks. 05-23 01:15:56.413: E/AndroidRuntime(599): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.JLaird.blogreader/com.JLaird.blogreader.BlogWebViewActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class android.webkit.WebView 1 Answer Christopher Basinger 14,481 Points Christopher Basinger Christopher Basinger 14,481 Points over 2 years ago It seems to me based upon the information you provided which isn't much to really go off of that you didn't implement the intent/broadcast for the android