NoClassDefFoundError in 4.4 kitkat but not in 5.0 Lollipop - Could not find class

南楼画角 提交于 2019-12-12 05:28:47

问题


have an error in my application but I can not find it. Android 5.0 works normally, but in 4.4 of this error below:

Could not find class 'com.quickblox.q_municate.utils.ImageUtils$SmartUriDecoder', referenced from method com.quickblox.q_municate.utils.ImageUtils.getImageLoaderConfiguration

Shortly after it appears:

java.lang.NoClassDefFoundError: com.quickblox.q_municate.utils.ImageUtils$SmartUriDecoder
at com.quickblox.q_municate.utils.ImageUtils.getImageLoaderConfiguration(ImageUtils.java:67) at com.quickblox.q_municate.App.initImageLoader(App.java:32)
at com.quickblox.q_municate.App.initApplication(App.java:42)
at com.quickblox.q_municate.App.onCreate(App.java:27)

Does anyone know what can it be?


回答1:


You can try doing,

multiDexEnabled = false

in your build.gradle file.

If you already have multiDexEnabled = true then change it to false or add this new line.




回答2:


Make sure that you have the correct libraries imported in your project and go to your gradle to make sure that you're compiling everything that you're trying to use.



来源:https://stackoverflow.com/questions/34072826/noclassdeffounderror-in-4-4-kitkat-but-not-in-5-0-lollipop-could-not-find-clas

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