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

634 Views Asked by At

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?

2

There are 2 best solutions below

0
gprathour On BEST ANSWER

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.

1
Brandon LaBraun Curry On

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.