Android : Noclassdeffounderror For Android 4.4 And Below
My app gives NoClassDefFoundError for versions of sdk 19 or below. I had in my gradle android { compileSdkVersion 23 buildToolsVersion '23.0.1' defaultConfig {
Solution 1:
I'm almost sure that it is multidex issue. If it's running properly on sdk 21 - it's multidex issue.
Here is official info: Multidex
If you're using custom implementation of Application class, it has to extend MultiDexApplication class. Also there is gradle flag required. If you're not using custom Application class, just add entry provided in your manifest - it's described in documentation.
Edit: Almost forgot - you've to add dependency, multidex is provided with this library: compile 'com.android.support:multidex:1.0.1'
Post a Comment for "Android : Noclassdeffounderror For Android 4.4 And Below"