I'm having a problem regarding an Android app. Here's the error message:
06-29 16:07:28.263: E/AndroidRuntime(196): Uncaught handler: thread main exiting due to uncaught exception
06-29 16:07:28.463: E/AndroidRuntime(196): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.androidcalc/com.calc.AndroidCalc}: java.lang.ClassNotFoundException: com.calc.AndroidCalc in loader dalvik.system.PathClassLoader@44c067c8
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.os.Handler.dispatchMessage(Handler.java:99)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.os.Looper.loop(Looper.java:123)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread.main(ActivityThread.java:4363)
06-29 16:07:28.463: E/AndroidRuntime(196): at java.lang.reflect.Method.invokeNative(Native Method)
06-29 16:07:28.463: E/AndroidRuntime(196): at java.lang.reflect.Method.invoke(Method.java:521)
06-29 16:07:28.463: E/AndroidRuntime(196): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
06-29 16:07:28.463: E/AndroidRuntime(196): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
06-29 16:07:28.463: E/AndroidRuntime(196): at dalvik.system.NativeStart.main(Native Method)
06-29 16:07:28.463: E/AndroidRuntime(196): Caused by: java.lang.ClassNotFoundException: com.calc.AndroidCalc in loader dalvik.system.PathClassLoader@44c067c8
06-29 16:07:28.463: E/AndroidRuntime(196): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
06-29 16:07:28.463: E/AndroidRuntime(196): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
06-29 16:07:28.463: E/AndroidRuntime(196): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
06-29 16:07:28.463: E/AndroidRuntime(196): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
06-29 16:07:28.463: E/AndroidRuntime(196): ... 11 more
I've checked Google for some help and found a couple other threads on SO about this, but none of those seem to match my case. Here's what happened:
I have an app I started writing about a year or so ago. For a while, I shelved it despite it being incomplete because I had other things going on. I just came back to it today after about 6 months of inactivity to try to implement a UI for tablets (currently the Tablet UI is borrowing from the smaller screen UI which is super ugly). Here's what I did:
1) I created a folder layout-large to store the new UI elements, and I CTRL-C CTRL-V'd in the UI elements from the smaller layout folders as a base to work with.
2) I realized my tablet was actually classified extra large, so I repeated step 1 except with layout-xlarge.
3) I modified some of the UI dressings in layout-xlarge (text sizes and element sizes only, did not touch any code).
4) I noticed that I had not installed the required SDKs to emulate my tablet (I only had up to 4.0.3 and needed 4.1.2), so I updated my SDKs through the SDK Manager.
5) After updating the SDKs, I created the Tablet VM.
6) I was told Eclipse needed to update a bunch of things, so I did that.
7) After updating Eclipse, I was told I needed to go back into the SDK manager and update some more things (specifically something called Build-tools), so I did that.
8) I ran the program on my Tablet VM and got the above error.
9) I ran the program on my phone VM (which worked under the previous version) and got the above error.
Somehow in proceeding with the above steps, without touching a single line of code or adding any new Activity elements (except for additional UIs), I managed to bugger up my application to the point that it will not run. I have tried the following things already:
1) I have checked my Android Manifest. The only thing in it is the single sole Activity application that is supposed to be there.
2) I have done a Project Clean.
3) A previous thread I read suggested I delete the "bin" and "gen" directories and rebuild those. I did that.
None of these 3 things have worked. Does anyone have any further suggestions? Thanks.