NoClassDefFoundError - Eclipse and Android

后端 未结 27 1013
夕颜
夕颜 2020-11-22 08:02

I\'m having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja ja

27条回答
  •  太阳男子
    2020-11-22 08:46

    I had this problem and it was caused by not "exporting" the library.Issue was just because the .class files for some classes are not available while packaging the APK.Compile time it will work fine with out exporiting

    In my case I was using "CusrsorAdapter" class and under "JavaBuildPath->Order and Export" I didn't check the support V4 jar.Once it is selected issue is gone.

    To make sure you are getting noClassDefFound error because of above reason, please check your logacat, you will see unknown super classs error at run time.

提交回复
热议问题