override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val url = "Some URL" doAsync { Request(url).run() uiThread { longToast("Request performed") } } }
My only problem here is an unresolved reference: Request. Unfortunately, I'm a new Kotlin programmer and I have no idea of where my problem can be.
2.1m questions
2.1m answers
60 comments
56.9k users