升级后,无法从 Intellij IDE 运行应用程序。
Intellij 版本:IntelliJ IDEA 2020.3(社区版)Build #IC-203.5981.155,建于2020年12月1日
龙目岛版本:0.32-EAP
错误 :
java: You aren't using a compiler supported by lombok, so lombok will not work and has been disabled.
Your processor is: com.sun.proxy.$Proxy24
Lombok supports: sun/apple javac 1.6, ECJ
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用烧烤条码打印库.我已经通过项目结构添加库成功地将库添加到IntelliJ.然后我导入了包并编写了方法,这没有给我任何错误.这些包在课堂上可用.
但是当我编译它时给了我错误:
error: package net.sourceforge.barbecue does not exist
Run Code Online (Sandbox Code Playgroud)
怎么会这样?
我在ubuntu编码,还有其他地方我要添加库吗?
谢谢.提卡
所以今天我遇到了一个奇怪的问题.我在IntelliJ中的一个模块遇到了一些问题,所以我决定尝试将它吹出来并从一个新的结账重建它.我从项目窗口中删除了该模块,然后从我的文件系统中删除/重新下载.
我回到Intellij并尝试导入模块.它让我完成了选择选项的正常步骤,然后似乎成功了.只有它没有重新出现在我的项目窗口中.
我不确定我做了什么,但重建整个项目不是一个选择.我希望有人可以透露Intellij为什么对我生气.
系统规格:Mac OSX Mountain Lion IntelliJ 12.1.4
我想切换到IntelliJ for forge modding(minecraft).当我做他们在网上做的事情时,我得到了一个maven错误......
Unindexed remote maven repositories found. Disable...
The following repositories used in your gradle projects were not indexed yet:
http://files.minecraftforge.net/maven
If you want to use dependency completion for these repositories artifacts,
Open Repositories List, select required repositories and press "Update" button
Run Code Online (Sandbox Code Playgroud)
当我点击更新,它加载半秒然后再次给出相同的错误...我在互联网上搜索,没有人似乎有我的问题...请帮助吗?
我在以下代码中遇到了编译错误,但我不知道如何解决。
public class Test throws IOException{
public static void main(String[] args) {
String path = "document.txt";
File file = new File(path);
Files.readString(file.toPath()); //cannot find symbol method readString(java.nio.file.Path)
}
}
Run Code Online (Sandbox Code Playgroud)
但我明白了
错误:(
8、14 )Java:找不到符号符号:方法readString(java.nio.file.Path)
位置:类java.nio.file.Files
有很多事情要注意。
readString(Path)中java.nio.file.Files。如果我要尝试size(Path)(中的另一种方法java.nio.file.Files),它可以工作此代码在intelliJ中不起作用,但在eclipse中起作用
如果我在intelliJ中创建了一个新项目,但在从github克隆的当前Maven项目中却没有,则此代码有效
Test.java