Unable to instantiate activity ComponentInfo

I’m developing a game in Libgdx and when I try to run my app on the emulator, in throws my a RunTimeException. Here is the output of my logcat:

    11-23 09:45:29.514: W/dalvikvm(1455): Unable to resolve superclass of Lcom/monkeyrun/game/AndroidLauncher; (94)
    11-23 09:45:29.522: W/dalvikvm(1455): Link of class 'Lcom/monkeyrun/game/AndroidLauncher;' failed
    11-23 09:45:29.522: D/AndroidRuntime(1455): Shutting down VM
    11-23 09:45:29.522: W/dalvikvm(1455): threadid=1: thread exiting with uncaught exception (group=0xa61d4908)
    11-23 09:45:29.534: E/AndroidRuntime(1455): FATAL EXCEPTION: main
    11-23 09:45:29.534: E/AndroidRuntime(1455): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.monkeyrun.game/com.monkeyrun.game.AndroidLauncher}: java.lang.ClassNotFoundException: Didn't find class "com.monkeyrun.game.AndroidLauncher" on path: /data/app/com.monkeyrun.game-1.apk
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.os.Looper.loop(Looper.java:137)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at java.lang.reflect.Method.invokeNative(Native Method)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at java.lang.reflect.Method.invoke(Method.java:511)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at dalvik.system.NativeStart.main(Native Method)
    11-23 09:45:29.534: E/AndroidRuntime(1455): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.monkeyrun.game.AndroidLauncher" on path: /data/app/com.monkeyrun.game-1.apk
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
    11-23 09:45:29.534: E/AndroidRuntime(1455): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
    11-23 09:45:29.534: E/AndroidRuntime(1455):

Things I have tried:

  • Move the the ApplicationLauncher class into a new package.
  • Changing the name of the package in the Manifest File.