Android-AdvancedWebView icon indicating copy to clipboard operation
Android-AdvancedWebView copied to clipboard

RuntimeException: Unable to start activity --> Binary XML file line #11: Error inflating class im.delight.android.webview.AdvancedWebView

Open ArezooNazer opened this issue 4 years ago • 6 comments

Hi.. I have an xml using AdvancedWebView but when ever I start activity it crashes with the above exception. Here is complete error:

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yaramobile.digitoon/com.yaramobile.digitoon.presentation.player.PlayerActivity}: android.view.InflateException: Binary XML file line #11: Binary XML file line #11: Error inflating class im.delight.android.webview.AdvancedWebView
at android.app.ActivityThread.performLaunchActivity + 2666(ActivityThread.java:2666)
at android.app.ActivityThread.handleLaunchActivity + 2727(ActivityThread.java:2727)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage + 1478(ActivityThread.java:1478)
at android.os.Handler.dispatchMessage + 102(Handler.java:102)
at android.os.Looper.loop + 154(Looper.java:154)
at android.app.ActivityThread.main + 6121(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run + 889(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main + 779(ZygoteInit.java:779)

Caused by android.view.InflateException: Binary XML file line #11: Binary XML file line #11: Error inflating class im.delight.android.webview.AdvancedWebView

Caused by android.view.InflateException: Binary XML file line #11: Error inflating class im.delight.android.webview.AdvancedWebView ```

ArezooNazer avatar Jul 23 '19 06:07 ArezooNazer

Are you sure you’ve actually added the dependency?

https://github.com/delight-im/Android-AdvancedWebView#installation

ocram avatar Jul 28 '19 15:07 ocram

I am also getting the same issue in some of my device. Any help would be really good.

rlogical-techsoft avatar Aug 21 '19 13:08 rlogical-techsoft

I think is related https://stackoverflow.com/questions/46810118/exception-on-new-webview-on-lollipop-5-1-devices

angelix avatar Sep 10 '19 08:09 angelix

Hi, i have same issue, but I noticed that the crash is mostly on a device with Android 5. Any solution?

biancaarno8 avatar Sep 11 '19 14:09 biancaarno8

I'm getting an inflation error when running UI tests on Android 5.0-5.1 emulators. It looks like it's because the WebView on the emulator is old (not sure if it can be updated). I think it's not caused in AdvancedWebView, but rather in androidx or something (haven't investigated).

I started getting this error when I updated my project dependencies recently (androidx included). I haven't changed the version of AdvancedWebView though (btw both 3.2.0 and 3.1.3 have the problem).

It works correctly when running it on a 5.0.2 device (or any other) and 6.0 emulator.

Error: android.view.InflateException: Binary XML file line #23: Error inflating class im.delight.android.webview.AdvancedWebView at android.view.LayoutInflater.createView(LayoutInflater.java:633)

nokite avatar Oct 15 '19 08:10 nokite

solved by this link 30# https://issuetracker.google.com/issues/141132133

PoarryScript avatar Nov 22 '19 08:11 PoarryScript