I have a problem with joda-time
and its integration to my Android app.
I want to deserialize JSON which contains a DateTime object which is represented with a string:
{
"userId": 333,
"username": "myuserid",
"timestamp": "2014-11-19T17:02:11.454Z"
}
But unfortunatelly I receive a NoClassDefFoundError
.
java.lang.NoClassDefFoundError: org/joda/convert/ToString...
Caused by: java.lang.ClassNotFoundException: org.joda.convert.ToSt
I tried to add joda-converter
and to add joda-time
dependency with the same version as server has. But inspite of this I constantly receive the exception. My current joda-time
dependecies are:
compile 'org.joda:joda-convert:1.8.1'
compile 'joda-time:joda-time:2.1'
I also tried to user joda-time-android
but it also was not successful.