Status Update
Comments
ad...@google.com <ad...@google.com>
ra...@google.com <ra...@google.com>
br...@gmail.com <br...@gmail.com> #2
Same issue for me.
Caused by: android.view.InflateException: Binary XML file line #40: Error inflating class android.webkit.WebView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.showmax.app.feature.webview.ui.WebViewActivity.onCreate(WebViewActivity.kt:26)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
... 10 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
... 23 common frames omitted
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040002
at android.content.res.Resources.getText(Resources.java:274)
at android.content.res.Resources.getString(Resources.java:360)
at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:702)
at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:608)
at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:619)
at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:758)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:608)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:546)
at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:312)
at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:97)
at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:264)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:124)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:111)
at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:108)
at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:261)
at android.webkit.WebV
Caused by: android.view.InflateException: Binary XML file line #40: Error inflating class android.webkit.WebView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.showmax.app.feature.webview.ui.WebViewActivity.onCreate(WebViewActivity.kt:26)
at android.app.Activity.performCreate(Activity.java:5937)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
... 10 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
... 23 common frames omitted
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040002
at android.content.res.Resources.getText(Resources.java:274)
at android.content.res.Resources.getString(Resources.java:360)
at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:702)
at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:608)
at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:619)
at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:758)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:608)
at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:546)
at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:312)
at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:97)
at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:264)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:124)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:111)
at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:108)
at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:261)
at android.webkit.WebV
ra...@google.com <ra...@google.com> #3
Thanks for the report. Q has become public now. Please do check on the same and get back with the bugreport if the issue persists.
Builds link :https://developers.google.com/android/images#updating
If the issue gets reproduced then capture the video and bugreport and attach it here.
Android bug report capturing
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method
After reproducing the issue, navigate to “developer settings”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Note: Please place the files in a folder, upload it to google drive and share the folder to android-bugreport@google.com, then share the link here.
Builds link :
If the issue gets reproduced then capture the video and bugreport and attach it here.
Android bug report capturing
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method
After reproducing the issue, navigate to “developer settings”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Note: Please place the files in a folder, upload it to google drive and share the folder to android-bugreport@google.com, then share the link here.
br...@gmail.com <br...@gmail.com> #4
This issue is not related with Android Q. The crashes are on Android 5+
ca...@gmail.com <ca...@gmail.com> #5
I am experiencing the same issue (Webview inflation exception caused by Resources.NotFoundException for string ID 0x2040002) in the field on 5.x devices after publishing an app update that was upgraded to AppCompat 1.1.0 from 1.0.2.
ra...@google.com <ra...@google.com> #6
To proceed further please attach your project, apk, bug report and video.
Note: Please place the files in a folder, upload it to google drive and share the folder to android-bugreport@google.com, then share the link here.
Note: Please place the files in a folder, upload it to google drive and share the folder to android-bugreport@google.com, then share the link here.
gm...@gmail.com <gm...@gmail.com> #7
Sample project attached. It is absolutely trivial: just a WebView in the layout.
It crashes every time on any emulator with API 21 or 22.
Downgrading AppCompat to 1.1.0-rc01 resolves the issue, so this is a regression.
See also:
https://issuetracker.google.com/issues/141132133
https://issuetracker.google.com/issues/141319678
https://issuetracker.google.com/issues/141351441
https://issuetracker.google.com/issues/141435394
https://issuetracker.google.com/issues/141436946
https://issuetracker.google.com/issues/142086375
https://issuetracker.google.com/issues/142270555
It crashes every time on any emulator with API 21 or 22.
Downgrading AppCompat to 1.1.0-rc01 resolves the issue, so this is a regression.
See also:
ra...@google.com <ra...@google.com>
[Deleted User] <[Deleted User]> #8
I got a method to fix this issue, you need create a WebView in Application onCreate() method, and then all assets which WebView needed will be loaded
"ApkAssets{path=/product/app/WebViewGoogle/WebViewGoogle.apk}"
"ApkAssets{path=/product/app/TrichromeLibrary/TrichromeLibrary.apk}"
"ApkAssets{path=/product/app/WebViewGoogle/WebViewGoogle.apk}"
"ApkAssets{path=/product/app/TrichromeLibrary/TrichromeLibrary.apk}"
Description
Devices/Android versions reproduced on: Android 5.1.1
Yesterday i found that after upgrading the appcompat library to v1.0.2 to v1.1.0 the app suddenly stopped working because of weviews that i was using was causing the app to freezes.
Logs were showing the android.view.InflateException: Binary XML file line #268: Error inflating class android.webkit.WebView
changed it back to 1.0.2 and it worked but not working with 1.1.0
compileSdkVersion 28
Uploading logs here for more info