Unable To Instantiate Service: Classnotfoundexception
I've read about a hundred problems of the same category, but none helped. I had a working application, then refactored the package name, and it compiled and ran. A week later I com
Solution 1:
Due to a recent update of the ADT plugin the library folder had to be changed to "libs" instead of lib. I came across it several times recently.
Solution 2:
Of the top of my head, the most common cause for this type of error is missing proguard.flags file.
Proguard will run on your code and obfuscate all names. If you have not specified a -keep
flag for your service class, its name will be changed as well, and thus the OS won't be able to find it.
So my guess would be that you forgot to commit the proper proguard configuration file, which would explain why it used to work but doesn't now.
Post a Comment for "Unable To Instantiate Service: Classnotfoundexception"