Unable to instantiate activity ComponentInfo

I am using the latest version of the jmonkeysdk. I have a project when is the basicgame project that is inlucded in the jmonkeysdk. I have sep up the project to run on my external Android 2.3.3 phone. I also have the android plugin installed. When i try to run the project, i get this error message. It seems to me it can’t find the MainActivity.java. I can’t find any solutions online.



03-31 15:02:16.059 26601 26601 E AndroidRuntime: FATAL EXCEPTION: main

03-31 15:02:16.059 26601 26601 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mycompany.mygame/com.mycompany.mygame.MainActivity}: java.lang.ClassNotFoundException: com.mycompany.mygame.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.mycompany.mygame-1.apk]

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1635)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1738)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:124)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:980)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.os.Looper.loop(Looper.java:130)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:3906)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:507)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:840)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:598)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: com.mycompany.mygame.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.mycompany.mygame-1.apk]

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:551)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1021)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1627)

03-31 15:02:16.059 26601 26601 E AndroidRuntime: … 11 more

03-31 15:02:16.059 15642 15878 W ActivityManager: Force finishing activity com.mycompany.mygame/.MainActivity

http://hub.jmonkeyengine.org/groups/android/forum/topic/android-sdk-r17-libs-folder-issue/