Android tests build error: Multiple dex files define Landroid/support/test/BuildConfig

Update (9/07/2015): You can continue to work with 22.2.1 if you use the following excludes: androidTestCompile (‘com.android.support.test.espresso:espresso-core:2.2’) { exclude group: ‘com.android.support’, module: ‘support-annotations’ } androidTestCompile (‘com.android.support.test:runner:0.3’) { exclude group: ‘com.android.support’, module: ‘support-annotations’ } androidTestCompile (‘com.android.support.test:rules:0.3’) { exclude group: ‘com.android.support’, module: ‘support-annotations’ } If you depend on espresso-contrib, you need the exclude as well. Update (8/03/2015): … Read more

Failed to resolve: com.android.support.design:25.4.0

Important: The support libraries are now available through Google’s Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup. Step 1: Open the build.gradle file for your application. Step 2: Make sure that the repositories section includes a maven section with the “https://maven.google.com” … Read more

com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml

Instead of this packagingOptions { exclude ‘META-INF/LICENSE’ exclude ‘META-INF/NOTICE’ } try this packagingOptions { exclude ‘META-INF/DEPENDENCIES.txt’ exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/NOTICE.txt’ exclude ‘META-INF/NOTICE’ exclude ‘META-INF/LICENSE’ exclude ‘META-INF/DEPENDENCIES’ exclude ‘META-INF/notice.txt’ exclude ‘META-INF/license.txt’ exclude ‘META-INF/dependencies.txt’ exclude ‘META-INF/LGPL2.1’ } and more thing Remove this line apply plugin: ‘com.google.gms.google-services’ from Bottom and add to Top after this apply plugin: ‘com.android.application’. … Read more