0

I found this Adding a library/JAR to an Eclipse Android project and followed the directions there, but I still seem to be getting a NoClassDefException on my class derived from the third party library.

I downloaded the third party library and imported according to the answer above. According to this, it will convert the code automatically to dalvik. Then, when I run on my phone, it tells me it cannot instantiate the sub-class of the third party library. Other messages say it is because it cannot find the superclass.

Am I missing something obvious?

Community
  • 1
  • 1
Thom
  • 14,013
  • 25
  • 105
  • 185

1 Answers1

1

It appears that the "libs" directory is a magic name. I renamed my directory to libs and re-ran the app and it appears to be working.

Thom
  • 14,013
  • 25
  • 105
  • 185
  • `libs/` is a very magic name. Also, step #5 of the accepted answer on the question you linked to is wrong. That being said, you may need to double-check the "Order & Export" portion of your build path: http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22/16596990#16596990 – CommonsWare Dec 24 '13 at 18:38