我一直试图在eclipse中加载测试存储库libgdx/tests几个小时但根本没有成功。
我使用的是JRE 1.8,但编译器合规级别为1.7。我按照这里的教程How to running tests来设置ANT(1.9.7)和GWT(2.6.1 [在教程中的建议])。
我清理了所有项目并刷新了它们。而且我仍然会收到大量的错误,因为找不到罐子(请不要告诉我他们必须手工添加:?):
Description Resource Path Location Type
Project 'gdx-backend-jglfw' is missing required library: '/gdx/libs/gdx-natives.jar' gdx-backend-jglfw Build path Build Path Problem
Project 'gdx-backend-jglfw' is missing required library: 'libs/gdx-backend-jglfw-natives.jar' gdx-backend-jglfw Build path Build Path Problem
Project 'gdx-backend-jglfw' is missing required library: 'libs/jglfw.jar' gdx-backend-jglfw Build path Build Path Problem
Project 'gdx-backend-lwjgl' is missing required library: '/gdx/libs/gdx-natives.jar' gdx-backend-lwjgl Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: '/gdx/libs/gdx-natives.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-linux.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-macos.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-windows.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-linux.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-macos.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-windows.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-linux.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-macos.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-windows.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-linux.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-macos.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-windows.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-opengl.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-linux.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-macos.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-windows.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl.jar' gdx-backend-lwjgl3 Build path Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-cacerts-full.jar' gdx-backend-robovm Build path Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-cocoatouch.jar' gdx-backend-robovm Build path Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-objc.jar' gdx-backend-robovm Build path Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-rt.jar' gdx-backend-robovm Build path Build Path Problem
Project 'gdx-bullet' is missing required library: 'libs/gdx-bullet-natives.jar' gdx-bullet Build path Build Path Problem
Project 'gdx-controllers-desktop' is missing required library: 'libs/gdx-controllers-desktop-natives.jar' gdx-controllers-desktop Build path Build Path Problem
Project 'gdx-freetype' is missing required library: 'libs/gdx-freetype-natives.jar' gdx-freetype Build path Build Path Problem
Project 'gdx-tests-android' is missing required source folder: 'gen' gdx-tests-android Build path Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-box2d/libs/gdx-box2d-natives.jar' gdx-tests-lwjgl Build path Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar' gdx-tests-lwjgl Build path Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-freetype/libs/gdx-freetype-natives.jar' gdx-tests-lwjgl Build path Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-box2d/libs/gdx-box2d-natives.jar' gdx-tests-lwjgl3 Build path Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar' gdx-tests-lwjgl3 Build path Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-freetype/libs/gdx-freetype-natives.jar' gdx-tests-lwjgl3 Build path Build Path Problem
Project 'gdx' is missing required library: 'libs/hamcrest-core-1.3.jar' gdx Build path Build Path Problem
Project 'gdx' is missing required library: 'libs/junit-4.11.jar' gdx Build path Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-backends-gwt' gdx-backends-gwt Build path Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-box2d-gwt' gdx-box2d-gwt Build path Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-controllers-gwt' gdx-controllers-gwt Build path Build Path Problem
Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment. gdx-controllers-gwt Build path JRE System Library Problem
注意:我知道这个问题:libGDX - gdx-backend-jglfw is missing and some others但它相当陈旧,所以库已经更改,并且没有发布解决方案。
答案 0 :(得分:1)
Eclipse抱怨你的JRE(你的堆栈底部):
构建路径指定执行环境JavaSE-1.7。工作区中没有安装与此环境严格兼容的JRE。 gdx-controllers-gwt构建路径JRE系统库问题
您需要to set the property in Eclipse在项目JRE1.7中预先配置
===============
应该通过运行ant -f fetch.xml
解决其他构建路径问题 - 确保成功。
或者,您可以运行更具体的ant任务,例如ant -f fetch.xml fetch-lwjgl
解决依赖关系,应该修复
项目' gdx-backend-lwjgl3'缺少必需的库
===============
缺少GWT SDK问题:
Eclipse的GWT插件 - 按照页面上的说明操作,只安装必需的和GWT的东西 还要确保默认的GWT SDK是2.6.1。您可能需要在此处下载并通过转到Window / Eclipse安装它 - >偏好 - > Google - > Web Toolkit - >添加然后确保已选中。
gdx-backends-gwt
项目Build Path
- Configure Build Path
- Libraries
标签
它不应该有错误和提供正确的路径,例如:gdx-backends-gwt
,gdx-box2d-gwt
,gdx-controllers-gwt
Btw,12/12/2016 devs将其更改为gwt-2.8.0,请参阅commit a748656a,所以可能还没有更新说明
===============
我也做过./gradlew build
- 但这并不是我认为导致你的问题的原因
别忘了清理重建你的日食:
要解决问题,请执行以下操作:
转到项目 - >清洁确保选中所有项目,然后单击“确定”
选择包浏览器中的所有项目,然后按F5刷新它们(vodoo ...)
关于GWT还会有一些问题。 在Problems视图中,右键单击每个条目" web.xml 文件不存在",选择快速修复并按确定
即使在完成之后我仍然有问题:)
The project was not built since its build path is incomplete. Cannot find the class file for org.robovm.apple.uikit.UIApplicationDelegateAdapter.