question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 ```

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
PoarryScriptcommented, Nov 22, 2019
0reactions
nokitecommented, Oct 15, 2019

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - android.view.InflateException Error inflating class ...
I started a fresh AVD with lollipop based on a device I found on the crash reporter in GDC, and I can reproduce...
Read more >
MessageView not inflating in MessageActivity? - Zendesk help
Unable to start activity ComponentInfo{com.hubhopper/zendesk.messaging.MessagingActivity}: android.view.InflateException: Binary XML file ...
Read more >
Meeting SDK - Zoom Developer Forum
Caused by: android.view.InflateException: Binary XML file line #48 in ... RuntimeException: Unable to start activity ...
Read more >
delight-im / Android-AdvancedWebView Download - JitPack
AdvancedWebView. Enhanced WebView component for Android that works as intended out of the box. Requirements. Android 2.2+. Installation.
Read more >
Android.Views.InflateException: 'Binary XML file line #1 ...
I get the following error when trying to launch after installing SyncFusion. This is madness. SFListView. Android.Views.InflateException: ' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found