on_audio_query icon indicating copy to clipboard operation
on_audio_query copied to clipboard

Error!!

Open naime999 opened this issue 1 year ago • 1 comments

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

naime999 avatar May 12 '24 17:05 naime999

I'm also getting the same issue. Any fix?

joec05 avatar Aug 22 '24 12:08 joec05

I'm also getting the same issue. Any fix?

TimSpan avatar Nov 22 '24 08:11 TimSpan

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
'

Dejuls avatar Feb 06 '25 11:02 Dejuls