unresolved reference activity_main
you should remove import android.R
unresolved reference launch kotlin
fun main() { GlobalScope.launch { // launch a new coroutine in background and continue delay(1000L) println("World!") } println("Hello,") // main thread continues here immediately runBlocking { // but this expression blocks the main thread delay(2000L) // ... while we delay for 2 seconds to keep JVM alive } }
Source: stackoverflow.com
unresolved reference activity_main kotlin
you maybe deleted this package com.example.yourappname