Answer the question
In order to leave comments, you need to log in
What causes the Unresolved reference: WebViewClient error?
Good afternoon!
MainActivity.kt
package com.example.test
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
webViewSetup()
}
private fun webViewSetup() {
wb_WebView.webViewClient = WebViewClient()
wb_WebView.apply {
loadUrl("https://yandex.ru")
}
}
}
MainActivity.kt: (15, 36): Unresolved reference: WebViewClient
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question