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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.