Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yeswsx opened this issue Apr 17, 2018 · 12 comments
Closed
Labels

Comments

@yeswsx
Copy link

yeswsx commented Apr 17, 2018

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'
}
@sjudd
Copy link
Collaborator

sjudd commented Apr 17, 2018

http://bumptech.github.io/glide/doc/download-setup.html#android-sdk-requirements

@sjudd sjudd added the question label Apr 17, 2018
@yeswsx
Copy link
Author

yeswsx commented Apr 18, 2018

Thanks.

@yeswsx yeswsx closed this as completed Apr 18, 2018
@fededri
Copy link

fededri commented Apr 20, 2018

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'

@edrisaturay
Copy link

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

@Jolanrensen
Copy link

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.

@hiteshcla00
Copy link

hiteshcla00 commented Sep 27, 2018

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\app\build\intermediates\transforms\dexBuilder\debug\1.jar,
com.android.tools.r8.CompilationFailedException: Compilation failed to complete |  
com.android.tools.r8.utils.AbortException |  

@zhouxuemeng1988
Copy link

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

@Yogi2019
Copy link

Yogi2019 commented Dec 7, 2018

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"
}
}

@farhananwar187
Copy link

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

@farhananwar187
Copy link

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

It worked for me.

@roky-rockstar
Copy link

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'

}

@Noble-Shiva
Copy link

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

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

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests