本文介绍了eclipse -npe中的内部编译器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
内部编译器错误:java.lang.NullPointerException at
org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:61)
该项目是一个android项目。任何线索?不想再做另外一次eclipse重新安装!帮助!
解决方案
稍晚,但我有同样的问题,也试图找到解决方案。也许这将来会帮助某人:
问题是Eclipce无法编译文件并引发异常。在我的情况下,修复是:
- 现在移动所有编译源(buildBin文件夹)
- 移动现在所有自定义构建器(.externalToolBuilders),如果你有它,并且所有.settings文件夹
- 重新启动Eclipse并让它构建
- 修复编译问题:)
- 粘贴所有以前删除的文件(不要松开任何设置\建造者)
I am suddenly getting this error from eclipse when compiling.
Internal compiler error: java.lang.NullPointerException at
org.eclipse.jdt.internal.compiler.apt.dispatch.AnnotationDiscoveryVisitor.visit(AnnotationDiscoveryVisitor.java:61)
The project is an android project. Any clues? Don't want to do another eclipse reinstall! Help!
解决方案
Little late, but I had the same problem and also tried to find solution. Maybe it will help someone in the future:
The problem is that Eclipce is unable to compile files and it throws an exception. In my case the fix was:
- Move for now all compiled sources (buildBin folders)
- Move for now all custom builders (.externalToolBuilders) if you have ones, and all .settings folder
- Restart Eclipse and let it build
- Fix compilation problems :)
- Paste back all previously removed files (to not loose any settings\builders)
这篇关于eclipse -npe中的内部编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!