Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded appcompat to 1.2.0-rc-02 #465

Merged

Conversation

andreidiaconu
Copy link
Contributor

This should solve this issue with appcompat webview reported here: https://issuetracker.google.com/issues/141132133

Some background: I got this exception on android API 21 and after investigating, I found out this is a bug from appcompat that was fixed and is available starting with 1.2.0 (which is now in rc2)

D/ChromeBrowserManager( 5600): WebView fallback declared.
W/art     ( 5600): Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/art     ( 5600): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
I/art     ( 5600): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
W/chromium( 5600): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation
W/chromium( 5600): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup
W/ResourceType( 5600): No known package when getting value for resource number 0x02040002
D/AndroidRuntime( 5600): Shutting down VM
W/CrashlyticsCore( 5600): Cannot send reports. Settings are unavailable.
E/AndroidRuntime( 5600): FATAL EXCEPTION: main
E/AndroidRuntime( 5600): Process: XXXXXXXX, PID: 5600
E/AndroidRuntime( 5600): java.lang.RuntimeException: Unable to start activity ComponentInfo{XXXXXXXX/com.pichillilorenzo.flutter_inappwebview.InAppBrowser.InAppBrowserActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView
E/AndroidRuntime( 5600): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
E/AndroidRuntime( 5600): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
E/AndroidRuntime( 5600): 	at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime( 5600): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
E/AndroidRuntime( 5600): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5600): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5600): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 5600): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5600): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5600): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 5600): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime( 5600): Caused by: android.view.InflateException: Binary XML file line #13: Error inflating class com.pichillilorenzo.flutter_inappwebview.InAppWebView.InAppWebView
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.createView(LayoutInflater.java:633)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
E/AndroidRuntime( 5600): 	at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
E/AndroidRuntime( 5600): 	at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
E/AndroidRuntime( 5600): 	at com.pichillilorenzo.flutter_inappwebview.InAppBrowser.InAppBrowserActivity.onCreate(InAppBrowserActivity.java:70)
E/AndroidRuntime( 5600): 	at android.app.Activity.performCreate(Activity.java:5937)
E/AndroidRuntime( 5600): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 5600): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
E/AndroidRuntime( 5600): 	... 10 more
E/AndroidRuntime( 5600): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5600): 	at java.lang.reflect.Constructor.newInstance(Native Method)
E/AndroidRuntime( 5600): 	at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
E/AndroidRuntime( 5600): 	at android.view.LayoutInflater.createView(LayoutInflater.java:607)
E/AndroidRuntime( 5600): 	... 21 more
E/AndroidRuntime( 5600): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040002
E/AndroidRuntime( 5600): 	at android.content.res.Resources.getText(Resources.java:274)
E/AndroidRuntime( 5600): 	at android.content.res.Resources.getString(Resources.java:360)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:702)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:608)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:619)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:758)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:608)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.android_webview.AwContents.<init>(AwContents.java:546)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:312)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:97)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:264)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:124)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:111)
E/AndroidRuntime( 5600): 	at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:108)
E/AndroidRuntime( 5600): 	at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:261)
E/AndroidRuntime( 5600): 	at android.webkit.WebView.<init>(WebView.java:548)
E/AndroidRuntime( 5600): 	at android.webkit

This should solve issue with appcompat webview reported here: https://issuetracker.google.com/issues/141132133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants