build.gradle file:
android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "xxxxx.com.myapp" minSdkVersion 9 targetSdkVersion 22 versionCode 3 versionName "1.2" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.google.android.gms:play-services-ads:7.3.0' compile files('libs/libGoogleAnalyticsServices.jar') } Error Log:
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_51\bin\java.exe'' finished with non-zero exit value 2
libGoogleAnalyticsServices.jartwice since at the beginning you add all jars in your libs folder, then you explicitly add this one again at the end. Try removing it.