Muhammad Muqorrobin Muhammad Muqorrobin - 1 year ago 212
Android Question

duplicate entry android support v4 in serviceinfoversion impl.class

i have this error :

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> duplicate entry: android/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl.class

on this build.gradle app :

apply plugin: ''

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.mtma.mytripmyadventure"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

repositories {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile('') {
force = true;
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile ''
compile 'com.squareup.picasso:picasso:2.5.2'
compile '[4,5)'
compile ''
compile ''
compile ''
compile 'com.roughike:bottom-bar:1.2.1'
compile ''
compile ''

i have try many things to do but the result still the same

i have add all*.exclude group: '', module: 'support-v4'

but still error

help me to resolve this.. icant resolve it in 1 day
thx stackoverflow

Answer Source

That error in your latest comment is completely different as it relates to an XML issue in your Activity.

You do not need the support-v4 dependency explicitly. It is included with the v7 dependency. That being said, definitely do not need to force = true on it

The solution to the first error is remove both dependencies of compile '

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download