Hi, I have flutter project, if I run in android st...
# community-support
k
Hi, I have flutter project, if I run in android studio then it run fine but when I run it through vs code then it throws error. java version
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Homebrew (build 17.0.13+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.13+0, mixed mode, sharing)
Gradle version
https\:<//services.gradle.org/distributions/gradle-7.5-all.zip>
Vs code error
Execution failed for task ':connectivity_plus:compileDebugJavaWithJavac'.
> error: invalid source release: 17
v
Seems you use a Java version <17 to run Gradle from VSC. That's why imho you should always use JDK toolchains feature to decouple the Java version used to run Gradle from the Java version used to build and run your code.