Android - "Class Not Found"

Hey guys, :slight_smile:
I was trying to run one of my projects on my android device. Unfortunately, I get this error message:

W/dalvikvm( 4382): VFY: rejected Lcom/destroflyer/roblocks/application/MainApplication;.loadSettings ()V W/dalvikvm( 4382): Verifier rejected class Lcom/destroflyer/roblocks/application/MainApplication; E/ 4382): SEVERE Class com.destroflyer.roblocks.application.MainApplication init failed E/ 4382): java.lang.ClassNotFoundException: com.destroflyer.roblocks.application.MainApplication E/ 4382): at java.lang.Class.classForName(Native Method) E/ 4382): at java.lang.Class.forName( E/ 4382): at java.lang.Class.forName( E/ 4382): at E/ 4382): at E/ 4382): at E/ 4382): at E/ 4382): at E/ 4382): at$600( E/ 4382): at$H.handleMessage( E/ 4382): at android.os.Handler.dispatchMessage( E/ 4382): at android.os.Looper.loop( E/ 4382): at E/ 4382): at java.lang.reflect.Method.invokeNative(Native Method) E/ 4382): at java.lang.reflect.Method.invoke( E/ 4382): at$ E/ 4382): at E/ 4382): at dalvik.system.NativeStart.main(Native Method) E/ 4382): Caused by: java.lang.VerifyError: com/destroflyer/roblocks/application/MainApplication E/ 4382): ... 18 more
The according MainActivity: [java]public MainActivity(){ // Set the application class to run appClass = "com.destroflyer.roblocks.application.MainApplication"; // Try ConfigType.FASTEST; or ConfigType.LEGACY if you have problems eglConfigType = ConfigType.BEST; // Exit Dialog title & message exitDialogTitle = "Exit?"; exitDialogMessage = "Press Yes"; // Enable verbose logging eglConfigVerboseLogging = false; // Choose screen orientation screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; // Invert the MouseEvents X (default = true) mouseEventsInvertX = true; // Invert the MouseEvents Y (default = true) mouseEventsInvertY = true; }[/java]

The class MainApplication is there and executable on desktop - I even created another class AndroidTest in the same package (blue box test code) which works fine when adapting the appClass attribute. So I guess the project is building fine, but somehow Android finds only one of those two classes…

Yours, destro :slight_smile:

EDIT: I tried to comment out every fancy code in the MainApplication to make sure the ClassNotFound-error is actually an ClassNotFound-error. But even with no executed code (only a black screen as application), it doesn’t work.

EDIT2: The MainActivity is actually in com.destroflyer.roblocks and not com.destroflyer.roblocks.application (as MainApplication), if this should be a problem.