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

Failed to load WebView provider: No WebView installed #642

Closed
Ali1Ammar opened this issue Jan 13, 2021 · 2 comments
Closed

Failed to load WebView provider: No WebView installed #642

Ali1Ammar opened this issue Jan 13, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Ali1Ammar
Copy link

Environment

Technology Version
Flutter version 1.22
Plugin version master
Android version 10

Device information: Galaxy J6+

Description

Expected behavior:
everythings work fine

Current behavior:
app crash on startup on Galaxy J6+ i get it from crashlytics also real user reported to me

Fatal Exception: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
       at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:435)
       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:252)
       at android.webkit.CookieManager.getInstance(CookieManager.java:47)
       at com.pichillilorenzo.flutter_inappwebview.MyCookieManager.<init>(MyCookieManager.java:17)
       at com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.a(InAppWebViewFlutterPlugin.java:46)
       at com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.a(InAppWebViewFlutterPlugin.java:22)
       at io.flutter.embedding.engine.FlutterEnginePluginRegistry.a(FlutterEnginePluginRegistry.java:79)
       at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:14)
       at com.sjaj.iq.MainActivity.configureFlutterEngine(MainActivity.java:5)
       at io.flutter.embedding.android.FlutterFragment.a(FlutterFragment.java:10)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.a(FlutterActivityAndFragmentDelegate.java:64)
       at io.flutter.embedding.android.FlutterFragment.b(FlutterFragment.java:12)
       at androidx.fragment.app.Fragment.performAttach(Fragment.java:21)
       at androidx.fragment.app.FragmentManagerImpl.a(FragmentManagerImpl.java:435)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:206)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:18)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:36)
       at androidx.fragment.app.FragmentManagerImpl.b(FragmentManagerImpl.java:111)
       at androidx.fragment.app.FragmentManagerImpl.c(FragmentManagerImpl.java:88)
       at androidx.fragment.app.FragmentManagerImpl.q(FragmentManagerImpl.java:21)
       at androidx.fragment.app.FragmentManagerImpl.d(FragmentManagerImpl.java:9)
       at androidx.fragment.app.FragmentManagerImpl.f(FragmentManagerImpl.java:6)
       at androidx.fragment.app.FragmentController.a(FragmentController.java:4)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:15)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1433)
       at android.app.Activity.performStart(Activity.java:7978)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3580)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:7948)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
Caused by android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
       at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:339)
       at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:402)
       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:252)
       at android.webkit.CookieManager.getInstance(CookieManager.java:47)
       at com.pichillilorenzo.flutter_inappwebview.MyCookieManager.<init>(MyCookieManager.java:17)
       at com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.a(InAppWebViewFlutterPlugin.java:46)
       at com.pichillilorenzo.flutter_inappwebview.InAppWebViewFlutterPlugin.a(InAppWebViewFlutterPlugin.java:22)
       at io.flutter.embedding.engine.FlutterEnginePluginRegistry.a(FlutterEnginePluginRegistry.java:79)
       at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:14)
       at com.sjaj.iq.MainActivity.configureFlutterEngine(MainActivity.java:5)
       at io.flutter.embedding.android.FlutterFragment.a(FlutterFragment.java:10)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.a(FlutterActivityAndFragmentDelegate.java:64)
       at io.flutter.embedding.android.FlutterFragment.b(FlutterFragment.java:12)
       at androidx.fragment.app.Fragment.performAttach(Fragment.java:21)
       at androidx.fragment.app.FragmentManagerImpl.a(FragmentManagerImpl.java:435)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:206)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:18)
       at androidx.fragment.app.FragmentTransition.a(FragmentTransition.java:36)
       at androidx.fragment.app.FragmentManagerImpl.b(FragmentManagerImpl.java:111)
       at androidx.fragment.app.FragmentManagerImpl.c(FragmentManagerImpl.java:88)
       at androidx.fragment.app.FragmentManagerImpl.q(FragmentManagerImpl.java:21)
       at androidx.fragment.app.FragmentManagerImpl.d(FragmentManagerImpl.java:9)
       at androidx.fragment.app.FragmentManagerImpl.f(FragmentManagerImpl.java:6)
       at androidx.fragment.app.FragmentController.a(FragmentController.java:4)
       at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:15)
       at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1433)
       at android.app.Activity.performStart(Activity.java:7978)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3580)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:7948)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

error title at crashlytics
com.pichillilorenzo.flutter_inappwebview.MyCookieManager.<init>

@Ali1Ammar Ali1Ammar added the bug Something isn't working label Jan 13, 2021
@nastaran-mohammadi
Copy link

same issue in flutter 2.2.2
android version 12

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 Oct 14, 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

2 participants