,我跟着這兩個設置指南: https://github.com/libgdx/libgdx/wiki/Setting-up-your-Development-Environment-%28Eclipse%2C-Intellij-IDEA%2C-NetBeans%29libgdx源代碼生成錯誤無法解析到我無法建立Libgdx源代碼類型
https://github.com/libgdx/libgdx/wiki/Running-demos-%26-tests
我已經下載了源代碼,擁有最新版本的JDK,擁有安裝了Android 25的Android SDK,並完成了所有其他步驟(據我所知,正確),但是我的libgdx安裝程序有成千上萬的錯誤,即使我嘗試清潔和重建。這些錯誤都是「無法解析爲某種類型」的。任何人都知道我可能弄錯了什麼?
此外,我嘗試運行「螞蟻」,他們忘了在正在運行的演示頁面中提到,但仍然沒有解決問題。
難道是因爲我在使用Java 8 JDK,而libgdx仍然在Java 7上?
Description Resource Path Location Type
AnimationCallback cannot be resolved to a type GwtApplication.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 214 Java Problem
AnimationScheduler cannot be resolved GamepadSupport.java /gdx-controllers-gwt/src/com/badlogic/gdx/controllers/gwt/support line 143 Java Problem
AnimationScheduler cannot be resolved GamepadSupport.java /gdx-controllers-gwt/src/com/badlogic/gdx/controllers/gwt/support line 156 Java Problem
AnimationScheduler cannot be resolved GwtApplication.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 214 Java Problem
AnimationScheduler cannot be resolved GwtApplication.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 223 Java Problem
AnimationScheduler cannot be resolved to a type GamepadSupport.java /gdx-controllers-gwt/src/com/badlogic/gdx/controllers/gwt/support line 136 Java Problem
ArrayBuffer cannot be resolved to a type DirectByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 43 Java Problem
ArrayBuffer cannot be resolved to a type DirectByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 47 Java Problem
ArrayBuffer cannot be resolved to a type DirectReadOnlyByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 41 Java Problem
ArrayBuffer cannot be resolved to a type DirectReadWriteByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 41 Java Problem
ArrayBuffer cannot be resolved to a type DirectReadWriteByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 49 Java Problem
ArrayBuffer cannot be resolved to a type WebGLRenderingContext.java /gdx-backends-gwt/src/com/google/gwt/webgl/client line 569 Java Problem
ArrayBuffer cannot be resolved to a type WebGLRenderingContext.java /gdx-backends-gwt/src/com/google/gwt/webgl/client line 577 Java Problem
ArrayBufferNative cannot be resolved DirectByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 40 Java Problem
ArrayBufferView cannot be resolved to a type DirectByteBuffer.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 52 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadOnlyFloatBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 138 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadOnlyIntBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 138 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadOnlyShortBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 137 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadWriteFloatBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 155 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadWriteIntBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 153 Java Problem
ArrayBufferView cannot be resolved to a type DirectReadWriteShortBufferAdapter.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 155 Java Problem
ArrayBufferView cannot be resolved to a type GwtGL20.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 881 Java Problem
ArrayBufferView cannot be resolved to a type GwtGL20.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 882 Java Problem
ArrayBufferView cannot be resolved to a type GwtGL20.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 929 Java Problem
ArrayBufferView cannot be resolved to a type GwtGL20.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt line 930 Java Problem
ArrayBufferView cannot be resolved to a type HasArrayBufferView.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio line 23 Java Problem
ArrayBufferView cannot be resolved to a type ScreenUtils.java /gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils line 89 Java Problem
ArrayBufferView cannot be resolved to a type WebGLRenderingContext.java /gdx-backends-gwt/src/com/google/gwt/webgl/client line 565 Java Problem
ArrayBufferView cannot be resolved to a type WebGLRenderingContext.java /gdx-backends-gwt/src/com/google/gwt/webgl/client line 573 Java Problem
ArrayBufferView cannot be resolved to a type WebGLRenderingContext.java /gdx-backends-gwt/src/com/google/gwt/webgl/client line 829 Java Problem
請給我看你的錯誤日誌,並確保你使用eclipse進行演示和測試。 – Aryan
我已經添加了一些目前存在的編譯錯誤,如果您認爲有幫助,我也可以嘗試運行其中一個演示。我正在使用日食。 –