IntelliJ/Gradle Could not determine java version from '11.0.1'

后端 未结 8 850
Happy的楠姐
Happy的楠姐 2020-12-09 09:18

I\'m running a Linux Ubuntu 18 OS. Installed jdk in a custom local directory.

Normally, IntelliJ recommends that you use the default gradle wrapper. But

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 09:53

    If you are using the latest version of intellijIdea.

    In my case, 2019.1 -version

    Delete the directory idea's jdk

    then RESTART idea.

    for detail see this pic

    Hope this is working for you !

    In chinese:

    (If you can't read chinese,you needn't to read this.All you need to know have typed above already)

    如果你是用最新版本的intellijidea.由于intellijidea默认安装了11的java。而且就算你输入java -verison,告诉你是java8,在ide里面也配置了java 8 idea还是告诉你这个错误。

    只有通过删除idea自己下载java11版本,可以解决这个问题。直接删除应用包下的jdk文件夹,重启idea就可以。如下图。

提交回复
热议问题