Srinivas Keerthiprakasam Srinivas Keerthiprakasam - 13 days ago 6
Android Question

Unable to execute dex: Multiple dex files define Lcom/google/android/gms/analytics

I got error while executing my android application. what's the actual problem of this. anyone know post it.

Answer
  android {
    compileSdkVersion 21
    buildToolsVersion "21.1.0"

    defaultConfig {
        ...
        minSdkVersion 14
        targetSdkVersion 21
        ...

        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
}

dependencies {
  compile 'com.android.support:multidex:1.0.0'
}
Comments