简体   繁体   English

NoClassDefFoundError:com / badlogic / gdx / LifecycleListener

[英]NoClassDefFoundError: com/badlogic/gdx/LifecycleListener

I am trying to use the libgdx controllers extension and i am getting this : 我试图使用libgdx控制器扩展,我得到这个:

Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: com/badlogic/gdx/LifecycleListener 线程“LWJGL Application”中的异常java.lang.NoClassDefFoundError:com / badlogic / gdx / LifecycleListener

When i try to load the Controllers class for the first time, from the desktop project 当我第一次尝试从桌面项目加载Controllers类时

this is my main projects jars: 这是我的主要项目罐子: 谁看图像描述? , 你这人怎么回事

and this is my desktop's project jars: 这是我桌面的项目罐子: 谁看图像描述? , 你这人怎么回事

‛LifecycleListener‛ is a newer class, so likely a version mis-match with an older core Libgdx library. 'LifecycleListener'是一个较新的类,因此版本可能与较旧的核心Libgdx库不匹配。

The Libgdx libraries make no guarantees about compatibility between Libgdx .jars. Libgdx库不保证Libgdx .jars之间的兼容性。 All gdx jars your apps use should be from the same build. 您的应用使用的所有gdx jar应来自同一版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM