如何设置Intellij默认IDK位置?
我一直在尝试通过执行Intellij中设置IDK的步骤:
1) file
2) project
3)project sdk
在Gradle设置中,我还指出了正确的SDK,但随后我收到一个弹出消息说:
Gradle sync failed: The idk installation is invalid. Selected idk location is:
C:/Program Files/Java/jdk-11.0.13
我不知道Intellij在哪里得到IDK -11.0.13来自。当我尝试手动设置它时,我将其设置为1.8 ANB,我会发现一些Android SDK问题: Android SDK位置不能位于文件系统根。
问题不在Android中。这是普通的爪哇
I have been trying to follow the steps of the setting up the idk in IntelliJ by doing:
1) file
2) project
3)project sdk
And also in gradle settings I also point to the correct SDK but then I get a popup message saying:
Gradle sync failed: The idk installation is invalid. Selected idk location is:
C:/Program Files/Java/jdk-11.0.13
I don't know where IntelliJ is getting idk-11.0.13 from. I have set it everywhere to 1.8 anb when I try to set it manually I get some Android SDK issue:
The android SDK location cannot be at the filesystem root.
The problem is not in Android. it is plain Java
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显示设置和项目 build.gradle 文件,
您还可以检查您的 IntelliJ 配置。
位置为
项目结构-项目-项目SDK
show you settings and project build.gradle file ,
and also you can check your IntelliJ config.
location is
Project Structure- Project - Project SDK