Skip to content Skip to sidebar Skip to footer

Joda-Time 2.1 And Android - NoClassDefFoundError

Trying to use DateTime in an Android app (API 15) but get the following in logcat: E/dalvikvm(794): Unable to resolve Lorg/joda/time/base/AbstractInstant; annotation class 1383 D/A

Solution 1:

You need to add the joda-convert.jar to your libs folder. Download the jar from http://sourceforge.net/projects/joda-convert/files/joda-convert/


Solution 2:

You should use joda-time-android. This is jodatime library adapted for android.


Post a Comment for "Joda-Time 2.1 And Android - NoClassDefFoundError"