Manza
Manza

Reputation: 3527

java.lang.NoClassDefFoundError: org.joda.time.DateTime

Getting this error when starting the app on android 4.3 API 18.

There are no compilation errors, and library is added in build.gradle

    compile 'joda-time:joda-time:2.9.2'

On android api 23 works with no problems, but on this device the app crashes on start.

Any idea why? ( already tried to clean, rebuild, etc)

Upvotes: 3

Views: 1830

Answers (1)

Manza
Manza

Reputation: 3527

Found the problem.

I put in build.gradle

    multiDexEnabled true

so I had to make my custom Application extend MultiDexApplication

Upvotes: 5

Related Questions