Android External jar files not found - java.lang.NoClassDefFoundError

Well yesterday went ahead and downloaded the Android 4.0.3 version aka Ice Cream Sandwich. Came along with that the Android SDK Tools version 17. Everything was running smooth until I hit a complete road block. My existing application when deployed won't recognize the external jars that are part of the project and are in my Project classpath. Tried everything from cleaning the project to removing the jars and adding them back. Nothing worked !

After searching for a while on the internet found a simple solution to the issue. Just rename the folder that holds the external jars from lib to libs and then go to the Project properties -> Build Path and remove the external jars and add them back pointing to the libs folder. And it works!

Hope it helps and you don't waste your time like I did.

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.