无效的Gradle项目配置文件?

时间:2017-03-01 19:02:06

标签: java eclipse gradle libgdx

我有一个工作得很好的Libgdx项目:Desktop和Android版本。我试图在gradle.build中添加一个外部库(kryonet),但它似乎没有用。在搞砸了一点之后,Eclipse在所有文件夹中显示错误,但代码中没有错误。桌面版仍然运行,但Android版本没有。在Eclipse的Problems视图中,存在以下错误:

Invalid Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs   org.eclipse.buildship.core.prefs    /GameWorkspace/.settings    Unknown Gradle Project Configuration Marker
Invalid Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs   org.eclipse.buildship.core.prefs    /Historia-android/.settings Unknown Gradle Project Configuration Marker
Invalid Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs   org.eclipse.buildship.core.prefs    /Historia-core/.settings    Unknown Gradle Project Configuration Marker
Invalid Gradle project configuration file: .settings/org.eclipse.buildship.core.prefs   org.eclipse.buildship.core.prefs    /Historia-desktop/.settings Unknown Gradle Project Configuration Marker

这是org.eclipse.buildship.core.prefs:

GRADLE_FILTERS=1.0-projectRelativePath-matches-false-false-android,1.0-projectRelativePath-matches-false-false-core,1.0-projectRelativePath-matches-false-false-desktop,1.0-projectRelativePath-matches-false-false-build,1.0-projectRelativePath-matches-false-false-.gradle
eclipse.preferences.version=1

我尝试清理项目并再次构建它并重新启动eclipse但它不起作用。 知道什么是错的吗? 谢谢!

0 个答案:

没有答案