Home > OS >  Android Studio java.lang.RuntimeException: Unable to start activity {} failed to create web view
Android Studio java.lang.RuntimeException: Unable to start activity {} failed to create web view

Time:11-02

I really need help. My application has no errors in the build or as I build it in aab/apk. But when I debug the app on an emulator it keeps crashing after the splashscreen. The LogCat gives an error which I could not fix. Plz help.

LogCat

AndroidManifest (1)

I cleaned and rebuilt it many times, but it did not work at all.

CodePudding user response:

Are you trying to debug a signed bundle? try with debug

CodePudding user response:

Take the WebView again which is latest and set the properties of the attribute height and width as match_parent. Then in the MainActivity file where the web view is initialize and declare then write the code.

webView=(WebView)findViewById(R.id.webview); webView.setWebViewClient(new WebViewClient()); webView.loadUrl("http://www.google.com");

  • Related