When update project Kotlin Android targetSdkVersion from 29 to 30, The following code line has an error.
webview.loadUrl(null) // error here: Null can not be a value of a non-null type String
I checked the function declaration, it does not change anything from API 29 to 30.
public void loadUrl(String url) {
}
What is the cause of the error in API 30 ? and why it not occurred in API 29?
I'm using Android Studio 4.0.1
Any help would be greatly appreciated.