error:Idea创建包没有package选项

报错原因:这是因为java是普通的文件夹,要设置为Source Root或是Test Resources Root
解决方法:右键–>new –> Mark Directory As –> Sources Root /Test Resources Root就可以啦

error:Idea创建包没有package选项_第1张图片

error:Idea创建包没有package选项_第2张图片

你可能感兴趣的:(intellij-idea,java)