问题
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