javaandroidquickbloximage-loadq-municate

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


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?


Solution

  • 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.