Search code examples
androidandroid-sdk-tools

Android SDK r20 runtime exceptions


I downloaded new Android SDK r20 and installed.

I created new application with an activity and a service. I am starting service in onCreate() method of activity.

I am getting Runtime exception Class Not Found which is my Service class name. I tested same application with SDK r14, no such exceptions and it is working fine.

Then, what is wrong with SDK r20 ??? Somebody please answer me. I searched about this problem on google, but no use.


Solution

  • You should try this:

    1.Remove all references to the JAR in your project from Java project -> properties -> Java build path -> libraries

    2.Create a libs folder if not exist at the root of your project Copy the JAR into the libs folder.

    3.If still not running OK. Right click your project > Android Tools > Fix Project Properties

    clean your project and run. it will work