Skip to content
Advertisement

Why cant I initialize the Webview

im just starting out with android studio, i have imported WebKit but those imports are grayed. and i cant initialize the webview “private WebView webview” shows errors how to do it correctly? enter image description here

JavaScript

Advertisement

Answer

I was using kotlin instead of java that was the issue (beginner mistake lol)

my issue was that i couldn’t initialize the webview on my code. but later i figured i was using kotlin as the programming language instead of using java (since syntax is different in java and kotlin) that was the issue. starting a new project with java solved the issue

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement