赞
踩
报错如下:
- 内部错误 (java.io.IOException): Cannot find IntelliJ IDEA project files at D:\code\鎴戠殑\鏈湴鏂囨。妫�绱�
- java.io.IOException: Cannot find IntelliJ IDEA project files at D:\code\鎴戠殑\鏈湴鏂囨。妫�绱�
- at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:121)
- at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:98)
- at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:23)
- at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:35)
- at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:67)
- at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:363)
- at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:212)
- at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:211)
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
- at java.base/java.lang.Thread.run(Thread.java:829)
-
- 请执行完整的项目重新构建(构建 | 重新构建项目)
这是因为编码问题,导致找不到路径
如: win11系统设置了utf-8编码,idea各种文件也是utf-8但是就会出现乱码
是因为jdk选的是GBK
编译的时候,设置utf-8就没问题了
设置->构建->编译器->java编译器
-encoding utf-8
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。