<Flutter: FAILURE: Build failed with an exception....
# stackoverflow
r
Flutter: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':on_audio_query_android:compileDebugKotlin' I want to use audio files from local storage in Flutter, and for that, I want to use the 'on_audio_query: ^2.9.0' library. However, I am encountering a problem like the one below: `FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'on audio query androidcompileDebugKotlin'.
'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....