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

android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter #2397

Closed
grove86dipesh opened this issue Nov 5, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@grove86dipesh
Copy link

grove86dipesh commented Nov 5, 2024

This issue was capture on The Google Firebase Crashlytics dashboard. I have attached all details with this message.

Stacktrace/Logs

Stacktrace/Logs
io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(error, android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter, null, java.lang.ClassCastException: android.webkit.WebSettingsWrapper cannot be cast to com.android.webview.chromium.ContentSettingsAdapter
	at Ye0.convertSettings(chromium-TrichromeWebViewGoogle.apk-stable-443021036:2)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:423)
	at Zc.invoke(chromium-TrichromeWebViewGoogle.apk-stable-443021036:5)
	at java.lang.reflect.Proxy.invoke(Proxy.java:1008)
	at $Proxy3.convertSettings(Unknown Source)
	at androidx.webkit.internal.WebkitToCompatConverter.convertSettings(SourceFile:5)
	at androidx.webkit.WebSettingsCompat.getAdapter(SourceFile:5)
	at androidx.webkit.WebSettingsCompat.setForceDarkStrategy(SourceFile:9)
	at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.InAppWebView.prepare(SourceFile:81)
	at com.pichillilorenzo.flutter_inappwebview_android.webview.in_app_webview.FlutterWebView.<init>(SourceFile:214)
	at com.pichillilorenzo.flutter_inappwebview_android.webview.FlutterWebViewFactory.create(SourceFile:102)
	at io.flutter.plugin.platform.PlatformViewsController.createPlatformView(SourceFile:41)
	at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(SourceFile:16)
	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(SourceFile:123)
	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(SourceFile:176)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(SourceFile:18)
	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(SourceFile:19)
	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0(SourceFile:42)
	at io.flutter.embedding.engine.dart.DartMessenger.a(SourceFile:1)
	at io.flutter.embedding.engine.dart.a.run(SourceFile:1)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(<truncated: 385 chars>
       at StandardMethodCodec.decodeEnvelope(message_codecs.dart:648)
       at MethodChannel._invokeMethod(platform_channel.dart:334)
       at ExpensiveAndroidViewController._sendCreateMessage(platform_views.dart:1104)
       at AndroidViewController.create(platform_views.dart:827)

Flutter version

v3.24.3

Operating System, Device-specific and/or Tool

Device: OnePlus
Operating system: Android 11

Plugin version

v6.1.5

Additional information

Screenshot 2024-11-05 at 12 27 01 PM
Screenshot 2024-11-05 at 12 27 12 PM
Screenshot 2024-11-05 at 12 32 23 PM

@grove86dipesh grove86dipesh added the bug Something isn't working label Nov 5, 2024
@pichillilorenzo
Copy link
Owner

I found the same issue, it should be fixed with the next version 6.2.0

@grove86dipesh
Copy link
Author

When can we expect this version 6.2.0?

@pichillilorenzo
Copy link
Owner

Today I should release the new 6.2.0-beta.1 version

@pichillilorenzo
Copy link
Owner

Released new version 6.2.0-beta.1.

@Den-creator
Copy link

The same issue. @pichillilorenzo when beta will become stable ?

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Nov 11, 2024

Probably next week. Any feedback about the new version is appreciated!

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants