I'm creating an app in Eclipse and now I want to Use appcompat library in my project. I have imported the library successfully and it is working fine when I extends some Activity with AppCompatActivity. The Problem is, when I run the app and My Application Launch that Activity which is extended by AppCompActivty. App crashes. Log Cat is showing NoClassDefFoundError: Please Guide me in the Right way. Thanks
Asked
Active
Viewed 852 times
0
-
Have you rebuild and clear project? – Skizo-ozᴉʞS ツ Sep 21 '15 at 10:04
-
Try deleting the gen folder and then cleaning the project. – mudit_sen Sep 21 '15 at 10:06
-
And Make sure you have same project build target for your project and every library project you have imported. – mudit_sen Sep 21 '15 at 10:08
-
I did it guys but it's not working. :-( – ImFarhad Sep 21 '15 at 10:23
1 Answers
1
NoClassDefFoundError
occurs when the source was successfully compiled, but at runtime
, the required class files were not found. This may be something that can happen in the distribution or production of JAR files.
My Advise : CLEAN AND REBUILD Your Project .If not works Use Android Studio instead of Eclipse .
Android actionbar how to add supporting library v7 appcompat for Eclipse

Community
- 1
- 1

IntelliJ Amiya
- 74,896
- 15
- 165
- 198