简体   繁体   English

用于Eclipse提交者的Eclipse Neon无法解析org.eclipse

[英]Eclipse Neon for Eclipse Committers can't resolve org.eclipse

I recently upgraded to Eclipse Neon. 我最近升级到Eclipse Neon。 I had a plugin project that built fine in Eclipse Luna, but now in neon, everywhere that I imported "org.eclipse."something I get an error: 我有一个插件项目,该项目在Eclipse Luna中运行良好,但是现在在霓虹灯中,我导入“ org.eclipse”的任何地方。我遇到了一个错误:

 The import org.eclipse cannot be resolved.

The plugin.xml has errors etc. The Project build path has "Plugin Dependencies" on the build path. plugin.xml出现错误等。项目构建路径在构建路径上具有“插件依赖项”。

My version of Eclipse is Eclipse IDE for Eclipse Committers Version: Neon.3 Release (4.6.3) Build id: 20170314-1500 我的Eclipse版本是Eclipse Eclipse的Eclipse IDE版本:Neon.3 Release(4.6.3)Build ID:20170314-1500

I'm running on MacOSX High Sierra. 我在MacOSX High Sierra上运行。

It's probably something very simple. 这可能很简单。

I have a similar problem every time I upgrade my eclipse installation. 每次升级Eclipse安装时,我都会遇到类似的问题。

For me the problem can be solved by adjusting the Target platform (can be found in the settings - just search for it) to match the currently running one. 对我来说,可以通过调整Target platform (可以在设置中找到-只是搜索它)以匹配当前正在运行的Target platform来解决该问题。 For that in most cases I simply add a target platform with default configuration and set that one active. 为此,在大多数情况下,我只需添加具有默认配置的目标平台并将其设置为活动即可。

After a rebuild (normally performed automatically) all those errors are gone. 重建后(通常自动执行),所有这些错误均消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM