Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
You can fix this issue as follows:
- Open the IntelliJ preferences
- Go to
Build, Execution, Deployment
>Compiler
>Kotlin Compiler
BUTOther Settings
>Kotlin compiler
if Android Studio >3.4
- Change the
Target JVM version
to1.8
- Click
Apply
Why I still get Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
Add kotlinOptions
and set jvmTarget
to 1.8 in your build.gradle
file to resolve the problem
kotlinOptions {
jvmTarget = "1.8"
}
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6
You can fix this issue as follows:
- Open the IntelliJ preferences
- Go to
Build, Execution, Deployment
>Compiler
>Kotlin Compiler
BUTOther Settings
>Kotlin compiler
if Android Studio >3.4
- Change the
Target JVM version
to1.8
- Click
Apply
Importing coroutines-common causes error Cannot inline bytecode build with JVM target 1.8 into.... Even with explicitly specified jvmTarget
The dependency org.jetbrains.kotlinx:kotlinx-coroutines-common:1.1.1
is wrong.
Use org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.1.1
instead.
Related Topics
Memory Leaks with Custom Font for Set Custom Font
Toggle Button Using Two Image on Different State
Comparing Bitmap Images in Android
Disable Orange Outline Highlight on Focus
Where Did the "Createfromresourceid()" Go
How to Measure Height, Width and Distance of Object Using Camera
How to Create Xxhdpi, Xhdpi, Hdpi, Mdpi and Ldpi Drawables from a Large Scale Image
How to Display a List of Images in a Listview in Android
How to Display a Yes/No Dialog Box on Android
How to Add New Column to Android SQLite Database
What Are the Differences Between Linearlayout, Relativelayout, and Absolutelayout
Android: Remove All the Previous Activities from the Back Stack
Swipe to Dismiss for Recyclerview
How to Get Hosting Activity from a View
How to Create Colorstatelist Programmatically
Android - How to Make a Button Flash