Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option

The error message you are encountering is related to incompatible JVM targets in Kotlin. To resolve this issue, you need to specify the proper '-jvm-target' option in your Kotlin configuration.

Here are the steps to resolve the issue:

  1. Identify the JVM target versions:
  2. Determine the JVM target version of the bytecode that is being built with JVM target 1.8.
  3. Determine the JVM target version of the bytecode that is being built with JVM target 1.6.

  4. Update the '-jvm-target' option:

  5. Open your Kotlin configuration file (e.g., build.gradle or pom.xml).
  6. Locate the section where JVM options are specified.
  7. Add or update the '-jvm-target' option with the appropriate JVM target version.

For example, if you want to build bytecode with JVM target 1.6, the '-jvm-target' option should be set to '1.6'.

  1. Rebuild your project:
  2. Save the changes to your Kotlin configuration file.
  3. Rebuild your project to apply the new JVM target configuration.

By following these steps and specifying the correct '-jvm-target' option, you should be able to resolve the issue related to incompatible JVM targets in Kotlin.