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

强颜欢笑 提交于 2019-12-10 20:16:24

问题


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)


回答1:


Found the problem.

I put in build.gradle

    multiDexEnabled true

so I had to make my custom Application extend MultiDexApplication



来源:https://stackoverflow.com/questions/36698452/java-lang-noclassdeffounderror-org-joda-time-datetime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!