java - Flutter run: JAVA_HOME is set to an invalid directory - Stack Overflow

i have downloaded jdk8 and the environment variables is set correctlyjava -version java version "

i have downloaded jdk8 and the environment variables is set correctly

java -version java version "1.8.0_431" Java(TM) SE Runtime Environment (build 1.8.0_431-b10) Java HotSpot(TM) 64-Bit Server VM (build 25.431-b10, mixed mode)

javac -version javac 1.8.0_431

JAVA_HOME : "C:\Program Files\Java\jdk-1.8"

but when i run flutter run i get this error: ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-21 Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

i was using jdk21 but now i need to use jdk8 to run the project. i have tried every possible solution i think.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745299709a4621361.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信