The project i am working on has around 180k
Methods. I have read blogs, and articles where its written that if you set your Min SDK
to 21
, then you don't need MultiDex
. But if i remove MultiDex
from here it gives me the 65k MultiDex
error message. Following is my gradle
file. I don't know whether i failed to understand the concept or something else. Kindly guide me.
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId 'com.myapp.app'
minSdkVersion 21
targetSdkVersion 23
versionCode 59
versionName "1.0.1"
multiDexEnabled true
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86"
}
}
dexOptions {
javaMaxHeapSize "4g" //specify the heap size for the dex process
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}