Robovm: java.lang.NoClassDefFoundError: org / robovm / objc / $ M

I have a problem every time I start my application that was built with libgdx / robovm. The build completed successfully, but every time I open the app I get the following stack trace:

java.lang.NoClassDefFoundError: org/robovm/objc/$M
    at org.robovm.apple.foundation.NSObject.init(NSObject.java)
    at org.robovm.apple.foundation.NSObject.<init>(NSObject.java)
    at org.robovm.apple.foundation.NSAutoreleasePool.<init>(NSAutoreleasePool.java)
    at my.app.IOSLauncher.main(IOSLauncher.java)

      

I am using the latest robovm, Xcode and JDK 8.

Any idea why this is happening?

+3


source to share


2 answers


I'm not sure what caused this exception, but an update for LibGDX 1.6.0 and RoboVM 1.2.0 solved the problem for me.



+2


source


I had the same problem after upgrading RoboVM in Eclipse to 1.2.0.



The setting roboVMVersion

on 1.2.0

in the main project file of build.gradle

the libgdx project has been fixed. Make sure to do Gradle

> Refresh All

in your projects in Eclipse.

+2


source







All Articles