java.lang.NoClassDefFoundError: Failed resolution of: Lcom/kotcrab/vis/ui/VisUI (only android)
See original GitHub issueI have this issue. On desktop it is working, on android he is runtime crashing.
It happens on line VisUI.load();
E/AndroidRuntime: FATAL EXCEPTION: GLThread 21118 Process: com.lusche, PID: 5448 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/kotcrab/vis/ui/VisUI; at com.lusche.screens.BaseGame.create(BaseGame.java:118) at com.lusche.screens.BaseApp.create(BaseApp.java:64) at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:311) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1520) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.kotcrab.vis.ui.VisUI" on path: DexPathList[[zip file "/data/app/com.lusche-2/base.apk", zip file "/data/app/com.lusche-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.lusche-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.lusche-2/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.lusche.screens.BaseGame.create(BaseGame.java:118) at com.lusche.screens.BaseApp.create(BaseApp.java:64) at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:311) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1520) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248) Suppressed: java.lang.ClassNotFoundException: com.kotcrab.vis.ui.VisUI at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 6 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
build.gradle (application level):
allprojects { apply plugin: “eclipse” apply plugin: “idea”
version = '1.0' ext { visuiVersion = '1.3.0' }
}
project(“:core”) { apply plugin: “java”
dependencies { ... compile "com.kotcrab.vis:vis-ui:$visuiVersion" ... }
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
@bartekpacia Try changing your dependencies from
implementation
toapi
in yourbuild.gradle
files.@kotcrab is the author of the library, I’m just helping with the maintenance. 😃
@czyzby Thanks! Replacing
with
for
project(":core")
did help… and now I’m getting a different errorjava.lang.NoClassDefFoundError: com/badlogic/gdx/graphics/g2d/freetype/FreeTypeFontGenerator
😃But it’s unrelated to VisUI. When I deal with it I’ll update this comment in case anybody is in the same boat.
And regarding the authorship… so thanks for your mainteneance and help 😃
update: I fixed the second error as well and was able to run the game on my iPhone 😃 Here’s the link