Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的班级说org.lwjgl.glfw.GLFWVidMode当我将鼠标悬停在导入时无法访问它。我将lwjgl-glfw.jar库及其所有本机添加到我的类路径中。我已经尝试删除它们并再次添加它们。到底是怎么回事?
org.lwjgl.glfw.GLFWVidMode
lwjgl-glfw.jar
我遇到过同样的问题。我正在使用的一个环绕是更改 glfw 的导入代码。
从import org.lwjgl.glfw.GLFW; 我改成import org.lwjgl.glfw.*;
import org.lwjgl.glfw.GLFW;
import org.lwjgl.glfw.*;
对我来说,虽然访问 GLFWVidMode 的代码带有红色下划线,并带有错误消息“类型不匹配:无法从 GLFWVidMode 转换为 GLFWVidMode”,但在其他任何地方都没有出现错误,并且程序启动时没有问题。