Glide: Program type already present: android.support.design.widget.CoordinatorLayout$1

Created on 17 Apr 2018  路  12Comments  路  Source: bumptech/glide

compile error

Program type already present: android.support.design.widget.CoordinatorLayout$1
Message{kind=ERROR, text=Program type already present: android.support.design.widget.CoordinatorLayout$1, sources=[Unknown source file], tool name=Optional.of(D8)}

glide version

com.github.bumptech.glide:glide:4.7.1

android sdk

compileSdkVersion 26

gradle

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.github.bumptech.glide:glide:4.7.1'
}
question

Most helpful comment

add
implementation'com.android.support:design:27.1.0``
to app level build.gradle

All 12 comments

Thanks.

I have the same problem, all seems to be correct:

ext.supportLibVersion = '27.0.2'
compileSdkVersion 27
buildToolsVersion '27.0.3'

implementation "com.android.support:appcompat-v7:${supportLibVersion}"
implementation "com.android.support:design:${supportLibVersion}"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'

implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'

add
implementation'com.android.support:design:27.1.0``
to app level build.gradle

How about the new implementation 'com.google.android.material:material:1.0.0-alpha3'? This would replace com.android.support:design, but I still get the same CoordinatorLayout error as before (I even excluded group "com.android.support" as described above.

i got this error plz help
Program type already present: android.support.v4.app.LoaderManager | 聽
null | 聽
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\CLA\IGText\appbuild\intermediates\transforms\dexBuilder\debug\1.jar,
com.android.tools.r8.CompilationFailedException: Compilation failed to complete | 聽
com.android.tools.r8.utils.AbortException | 聽

implementation ("com.github.bumptech.glide:glide:4.8.0") {
exclude group: "com.android.support"
}

i hv this error when build apk plz help=

Program type already present: android.support.v4.app.ActionBarDrawerToggle$Delegate

buied gredle file is=

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '28.0.3'

defaultConfig {
    applicationId "com.yogesh.amana7Chakra"
    minSdkVersion 14
    targetSdkVersion 26
    multiDexEnabled true
    ndk {
        moduleName "player_shared"
    }
}

buildTypes {
    release {
        minifyEnabled false
        shrinkResources false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
    sourceSets.main {
        jni.srcDirs = []// <-- disable automatic ndk-build call
}

}

dependencies {
compile('com.google.android.gms:play-services:+') { exclude module: 'support-v4' }
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/support-v4-19.0.1.jar')
compile 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:design:26.1.0'
implementation ("com.github.bumptech.glide:glide:4.8.0") {
exclude group: "com.android.support"
}

}

add
implementation'com.android.support:design:27.1.0``
to app level build.gradle
Thank you so much PaPZzzDNightmare . you saved my time :-)

add
implementation 'com.android.support:design:27.1.0``
to app level build.gradle

It worked for me.

I got this error Please help me to resolve this.

Error: Program type already present: com.bumptech.glide.MemoryCategory

Here is my All dependency:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// library for user interface
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.android.support:support-v4:27.1.1'

// library for api
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
implementation 'com.google.code.gson:gson:2.8.5'


// others library
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.android.gms:play-services-analytics:16.0.7'
implementation 'com.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.android.gms:play-services-ads:17.1.3'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
implementation 'com.google.maps.android:android-maps-utils:0.4.4'
implementation 'com.google.android.libraries.places:places:1.0.0'
//searchable spinner library
implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'

//gallery library
implementation 'com.github.darsh2:MultipleImageSelect:3474549'

// library for loader image
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'com.android.support:design:27.1.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'

}

In build.gradle (Module: app) ---> please add

implementation 'com.android.support:design:27.1.0'

Hope it helps!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tryking picture Tryking  路  3Comments

technoir42 picture technoir42  路  3Comments

kenneth2008 picture kenneth2008  路  3Comments

Ncit picture Ncit  路  3Comments

sant527 picture sant527  路  3Comments