I don’t arrive to build/run the application on Android Studio because of the barcode-scanner package (version 1.0.2 or 1.0.4… not tried on 2.0.x).
Here is the error message I get:
Execution failed for task ':capacitor-barcode-scanner:compileDebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (21).
1. What is it?
2. Can I solve it without upgrading to Capacitor V7 for the moment?
To downgrade, you have to download v17 via that interface. Make sure it is in a different location than v21. It didn’t work for me in the same location.
Also, after changing the version I had to restart my computer to have it take affect as the Gradle Daemon was caching v21.
Thanks for this response. Saved me after upgrading Android Studio and getting this issue.
I couldn’t find where this was initially, but its in Android Studio > Settings > Build, Execution, Deployment > Build Tools > Gradle. For some reason jbr-17 was already listed, however was referencing v21 instead. I had to download jbr-17 from JetBrans Runtime 17.0.14 (similar to the previous screenshot) then Apply.