[英]I've been getting an error on IntelliJ saying Cannot Create Class with an odd Error message
I've deleted and redone this a bunch of times and I can't create a simple class.我已经删除并重做了很多次,但我无法创建一个简单的类。 If I set the src folder the root folder and run the Test.java it works, however it doesn't show the blue "C" icon and shows that rectangular "J" Icon for Test.java
如果我将 src 文件夹设置为根文件夹并运行 Test.java 它可以工作,但是它不会显示蓝色的“C”图标并显示用于 Test.java 的矩形“J”图标
How do I fix this?我该如何解决?
The source roots are not configured correctly.源根目录配置不正确。 Only
src
directory needs to be configured as the source root, not the root directory of your project.只需要将
src
目录配置为源根目录,而不是你项目的根目录。
See the related questions:查看相关问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.