如何修复“ Missing Gradle项目配置文件”?造船问题? [英] How to fix "Missing Gradle project configuration file" issue in Buildship?

查看:1276
本文介绍了如何修复“ Missing Gradle项目配置文件”?造船问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为Eclipse用户,我一直很喜欢Gradle IDE。但是,现在不推荐使用该插件,而推荐使用新的Buildship插件。



在设置了新的Eclipse IDE并安装了Buildship之后,我遇到了以下错误我所有的Gradle项目:


缺少gradle项目配置文件:.settings / org.eclipse.buildship.core.prefs


google上有几个页面处理此问题,但它们似乎都已经过时了。插件的bugtracker中还有一个条目设置为 CLOSED FIXED。好吧,显然,它不是固定的。



我做错了吗?有什么想法可以解决这个问题吗?

解决方案

我自己已经解决了。通过gradle项目导入Eclipse的方式引起了缺少gradle项目配置文件的问题。



通过常规文件->导入->一般->将现有项目放入工作区命令,然后它将工作并产生上述错误。



但是,如果通过 File->导入相同的项目,导入->摇篮->现有的Gradle项目,您将得到一个不同导入向导,并且使用此向导,它的工作方式就像一个超级按钮。



<我仍然认为这是一个错误,因为导入向导的选择无关紧要。不过,选择合适的向导还是可行的解决方法。


As an Eclipse user, I always liked the Gradle IDE. However, this plugin is now deprecated in favor of the new Buildship plugin.

After setting up a fresh Eclipse IDE with Buildship installed, I'm faced with the following error in all my Gradle projects:

missing gradle project configuration file: .settings/org.eclipse.buildship.core.prefs

There are several pages on google that deal with this issue, but all of them seem pretty outdated. There is also an entry in the bugtracker of the plugin which is set to "CLOSED FIXED". Well, apparently, it's not fixed.

Am I doing something wrong? Any ideas how to tackle this issue?

解决方案

I've figured it out myself. The issue with the "missing gradle project configuration file" arises from the way the gradle project(s) are imported into Eclipse.

When importing a gradle project via the regular File -> Import -> General -> Existing Project into Workspace command, then it will not work and produce the aforementioned error.

However, if you import the very same project via File -> Import -> Gradle -> Existing Gradle Project, then you get a different import wizard, and with this wizard, it works like a charm.

I still think it's a bug because the choice of the import wizard should not matter. Still, choosing the proper wizard is a viable workaround.

这篇关于如何修复“ Missing Gradle项目配置文件”?造船问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆