Reputation: 315
When i run the app in debug mode it works fine. But when i build the released apk for my app, it gives me the error of WebViewFactory.I don't have any webview in my app. The error is shown below
2020-01-26 15:41:50.757 29072-29072/com.muhana.uniwork E/WebViewFactory: No such method for
getDefinedWebViewPackageName: java.lang.NoSuchMethodException: getDefinedWebViewPackageName []
Upvotes: 1
Views: 508
Reputation: 478
The issue might be due to proguard application on your release apk. Even if you are not using webview explicitly, you might have used some library that is using webview internally. Look for proguard rules of the libraries that you have used and add these rules to your project.
Upvotes: 1