-
Notifications
You must be signed in to change notification settings - Fork 74
MissingWebViewPackageException: Failed to load WebView provider #93
Comments
More info about this here Google should really fix this SDK seems like a rather easy fix https://stackoverflow.com/questions/46048912/android-failed-to-load-webview-provider-no-webview-installed |
whats the full stacktrace ? |
|
have you figured out the cause yet ? |
The problem comes from Android 7 because WebView is not working correctly. |
The exception says that webview package is missing, I wonder how this could be possible ? I don’t have a Android 7.0 device but I can try to reproduce on simulator maybe it will work ? |
Did you checked proguard configuration in file proguard-rules.pro for consent-library? Please for testing add and check if it fix your issue: |
@witoldgoralski the issue is peculiar to android 7, so that's not the issue |
@edge-developer I did some research and found out this happens because the "Android System WebView" started being installed as its own application from Android 5.0 and greater and this code happens to be running while "Android System WebView" is being updated. While its being updated the package doesn't exist so it causes this exception. People on the bug tracker said chrome and android were not going to fix this because it's normal behavior and up to developer to handle it. I think now you could close out this issue. Possible solution https://stackoverflow.com/questions/29575313/namenotfoundexception-webview https://bugs.chromium.org/p/chromium/issues/detail?id=506369 |
@edge-developer as that as far as your stack-trace goes ? so we could see what method from the consent SDK was the one that called it. As you can see in his stack trace(https://github.com/googleads/googleads-consent-sdk-android/issues/95) which is similar to yours it starts with "com.google.ads.consent.ConsentForm$Builder.build(ConsentForm.java:210)" so maybe where ever this method gets called put that in the try block how they did on the stack overflow posts |
Caused by android.webkit.WebViewFactory$MissingWebViewPackageException
Failed to load WebView provider: No WebView installed
7 Crashes affecting 2 users, using Samsung SM-J701M with Android 7.0 Installed
The text was updated successfully, but these errors were encountered: