Answer link :
NoClassDefFoundError below SDK 21
I resolved the issue by adding this to my Application Class.
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
If you don’t have/use Application class, you can put this:
android:name="android.support.multidex.MultiDexApplication"
Into your tag on AndroidManifest.xml
If you already have implemented an Application class
Also obviously, you need to add the Gradle dependency:
compile 'com.android.support:multidex:1.0.0'
More info about 65k methods problem: https://developer.android.com/tools/building/multidex.html
solved force close android app in devices with android 4