0

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

2 Answers2

1

You have multiple project dependencies that use the same classes.

In this case, com.google.android.gms.analytics is duplicated - so you should ensure you are only using this library once.

Check your build.gradle file, your libs folder and anywhere else you define dependencies.

I believe if you use com.google.android.gms:play-services as a dependency, newer versions contain Google Analytics by default

Ed Holloway-George
  • 5,092
  • 2
  • 37
  • 66
0
  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'
}