0

My project got messed up so I started over by just cloning from my repo. After getting all dependencies in order, I tried running my app and it crashes from:

java.lang.RuntimeException: Unable to instantiate activity

java.lang.ClassNotFoundException: org.me.app.activities.Main in loader dalvik.system.PathClassLoader[/data/app/org.me-1.apk]

The class is there, its in the Manifest, everything is good. What can I do?! I feel like my app is burning in flames now!!

LuxuryMode
  • 33,401
  • 34
  • 117
  • 188

1 Answers1

0

It looks like there are several possibilities that could have caused this.

  • Use of the android name attribute in the manifest, incorrect activity naming convention, .project file corruption, accidentally unchecking "Project -> Build Automatically": here
  • Incorrect (or inconsistent) package naming: here
  • Incorrect class loader context: here

Also you might find ideas on the Google Group thread.

Each of these has additional ideas and debugging attempts through the thread responses and comments.

If none of these work for you let us know and maybe we can find a new cause.

Community
  • 1
  • 1
Carth
  • 2,303
  • 1
  • 17
  • 26