Go to Tools > Kotlin > Configure Kotlin Plugin Updates and check for updates
then in your app gradle file replace jre with jdk
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Update
Newer version is jdk8
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
More Related Contents:
- How to add image background in button Android studio
- ListAdapter not updating item in RecyclerView
- getInstance() doesn’t work with other location than us-central1 in Realtime Database
- Unresolved reference – activity does not recognize synthetic imports in android studio v4
- How to create empty constructor for data class in Kotlin Android
- RecyclerView itemClickListener in Kotlin
- How can we have searched characters colored when we use searchview in recyclerview?
- NullPointerException when trying to access views in a Kotlin fragment
- activeNetworkInfo.type is deprecated in API level 28
- Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
- Default interface methods are only supported starting with Android 7.0 (Nougat)
- Kotlin: Whats does “return@” mean?
- android.view.View.systemUiVisibility deprecated. What is the replacement?
- Why a new ViewModel is created in each Compose Navigation route?
- Change Chip Widget style programmatically not working – Android
- Outdated Kotlin Runtime warning in Android Studio
- Jetpack Compose Smart Recomposition
- How to create a simple countdown timer in Kotlin?
- FirebaseMessaging.getInstance(firebaseApp) for secondary app supposed to be public but it’s private?
- How to make primary key as autoincrement for Room Persistence lib
- Kotlin Android start new Activity
- Execution failed for task ‘:app:mapDebugSourceSetPaths’. > Error while evaluating property ‘extraGeneratedResDir’ of task
- ViewTreeLifecycleOwner not found from DecorView@2da7146[MyActivity]
- How to disable and enable scrolling in LazyColumn/LazyRow in Jetpack Compose?
- AsyncTask as kotlin coroutine
- How can I debounce a setOnClickListener for 1 second using Kotlin Coroutines?
- fillMaxSize modifier not working when combined with VerticalScroll in Jetpack Compose
- How to pass id and application to a viewModel/viewModelFactory in Jetpack Compose?
- How to implement timer with Kotlin coroutines
- compileReleaseKotlin fails with java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context