on_audio_query
on_audio_query copied to clipboard
Error!!
kotlin_version = '1.8.22' classpath 'com.android.tools.build:gradle:8.1.2' JavaVersion.VERSION_17
Execution failed for task ':on_audio_query_android:compileDebugKotlin'.
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version. Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
I'm also getting the same issue. Any fix?
I'm also getting the same issue. Any fix?
i fixed the issue first make sure that your kotlin gradle plugin is the same as that of your gradle distribution. to check that, navigate to the android folder in your project and run ''.\gradlew -version". add these under android in the dependency's build.gradle file ' compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 }
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}' if your not using java 17 and also modify the android gradle plugin to your project's agp.
follow this to find the dependency files forthose using windows 'C:\Users\YourUsername\AppData\Local\Pub\Cache\hosted\pub.dev
'