I keep on getting the NoClassDefFoundError
on other test device (4.4.2) that I\'m using. But works fine on my test device (Android 5.1).
I tried the solutio
This is what solved the problem for me:
Add compile 'com.android.support:multidex:1.0.2' to app/build.gradle.
Add android:name="android.support.multidex.MultiDexApplication" to the application tag in AndroidManifest.xml.
If you are using a custom Application class, skip the AndroidManifest.xml and make your Application class extend MultiDexApplication instead of Application.