csdcorp / speech_to_text

A Flutter plugin that exposes device specific text to speech recognition capability.
BSD 3-Clause "New" or "Revised" License
351 stars 218 forks source link

Execution failed for task ':speech_to_text:compileDebugKotlin'. #447

Closed malamine19 closed 6 months ago

malamine19 commented 7 months ago

Hello Please help how to solve this issue

Execution failed for task ':speech_to_text: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

sowens-csd commented 7 months ago

Is this with your code or with the example app? It looks more like a Flutter usage question than a plugin question. Have you tried generating a new project and testing the plugin with that? If that's working then you could move the new project settings into your project. If there's still an issue let me know.

sowens-csd commented 6 months ago

You may want to test this again with 6.4.0 which is in the repo now and will be releasing soon. There was a PR about Java 1.8 compatibility that may resolve the issue.