Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior










94















I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle :



I am using Android Studio 3.2 Canary 4.



LogCat




AGPBI: "kind":"error","text":"Program type already present: android.support.design.widget.CoordinatorLayout$Behavior","sources":[],"tool":"D8"
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.



com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/4.jar,
.
.
...................



/windows/Other/app/build/intermediates/transforms/dexBuilder/debug/294.jar



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




build.gradle



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig
applicationId "com.dagkot"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""435e9075f348868c2714fe7c6895efa5""

debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""xxxx""




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1',
exclude group: 'com.android.support', module: 'support-annotations'
)
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"


// Dagger dependencies
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation "com.google.dagger:dagger:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"

//Butterknife dependencies
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'

// Architecture Components Dependencies
kapt "android.arch.lifecycle:compiler:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:extensions:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:reactivestreams:$rootProject.lifeCycle"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"

// Retrofit/RxJava Dependencies
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxAndroidVersion"
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.1.1'

// GSON
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Rx Location Manager
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'io.nlopez.smartlocation:rx:3.3.1'

//Anko Dependencies
implementation "org.jetbrains.anko:anko-commons:$rootProject.anko_version"
implementation "org.jetbrains.anko:anko-design:$rootProject.anko_version"
implementation 'com.android.support:design:27.0.2'

implementation("com.github.hotchemi:permissionsdispatcher:3.1.0")
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"

kapt "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"



Help would be much appreciated. Thanks :)










share|improve this question



















  • 2





    just add implementation 'com.android.support:design:27.1.1' in gradle file

    – Tushar Lathiya
    Jun 1 '18 at 12:13







  • 1





    @TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

    – Eswar
    Jul 25 '18 at 10:12












  • If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

    – Aswini Iyer
    Nov 7 '18 at 8:52















94















I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle :



I am using Android Studio 3.2 Canary 4.



LogCat




AGPBI: "kind":"error","text":"Program type already present: android.support.design.widget.CoordinatorLayout$Behavior","sources":[],"tool":"D8"
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.



com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/4.jar,
.
.
...................



/windows/Other/app/build/intermediates/transforms/dexBuilder/debug/294.jar



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




build.gradle



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig
applicationId "com.dagkot"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""435e9075f348868c2714fe7c6895efa5""

debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""xxxx""




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1',
exclude group: 'com.android.support', module: 'support-annotations'
)
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"


// Dagger dependencies
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation "com.google.dagger:dagger:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"

//Butterknife dependencies
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'

// Architecture Components Dependencies
kapt "android.arch.lifecycle:compiler:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:extensions:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:reactivestreams:$rootProject.lifeCycle"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"

// Retrofit/RxJava Dependencies
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxAndroidVersion"
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.1.1'

// GSON
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Rx Location Manager
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'io.nlopez.smartlocation:rx:3.3.1'

//Anko Dependencies
implementation "org.jetbrains.anko:anko-commons:$rootProject.anko_version"
implementation "org.jetbrains.anko:anko-design:$rootProject.anko_version"
implementation 'com.android.support:design:27.0.2'

implementation("com.github.hotchemi:permissionsdispatcher:3.1.0")
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"

kapt "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"



Help would be much appreciated. Thanks :)










share|improve this question



















  • 2





    just add implementation 'com.android.support:design:27.1.1' in gradle file

    – Tushar Lathiya
    Jun 1 '18 at 12:13







  • 1





    @TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

    – Eswar
    Jul 25 '18 at 10:12












  • If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

    – Aswini Iyer
    Nov 7 '18 at 8:52













94












94








94


15






I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle :



I am using Android Studio 3.2 Canary 4.



LogCat




AGPBI: "kind":"error","text":"Program type already present: android.support.design.widget.CoordinatorLayout$Behavior","sources":[],"tool":"D8"
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.



com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/4.jar,
.
.
...................



/windows/Other/app/build/intermediates/transforms/dexBuilder/debug/294.jar



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




build.gradle



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig
applicationId "com.dagkot"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""435e9075f348868c2714fe7c6895efa5""

debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""xxxx""




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1',
exclude group: 'com.android.support', module: 'support-annotations'
)
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"


// Dagger dependencies
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation "com.google.dagger:dagger:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"

//Butterknife dependencies
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'

// Architecture Components Dependencies
kapt "android.arch.lifecycle:compiler:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:extensions:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:reactivestreams:$rootProject.lifeCycle"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"

// Retrofit/RxJava Dependencies
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxAndroidVersion"
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.1.1'

// GSON
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Rx Location Manager
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'io.nlopez.smartlocation:rx:3.3.1'

//Anko Dependencies
implementation "org.jetbrains.anko:anko-commons:$rootProject.anko_version"
implementation "org.jetbrains.anko:anko-design:$rootProject.anko_version"
implementation 'com.android.support:design:27.0.2'

implementation("com.github.hotchemi:permissionsdispatcher:3.1.0")
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"

kapt "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"



Help would be much appreciated. Thanks :)










share|improve this question
















I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle :



I am using Android Studio 3.2 Canary 4.



LogCat




AGPBI: "kind":"error","text":"Program type already present: android.support.design.widget.CoordinatorLayout$Behavior","sources":[],"tool":"D8"
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.



com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /windows/Other/app/build/intermediates/transforms/dexBuilder/debug/4.jar,
.
.
...................



/windows/Other/app/build/intermediates/transforms/dexBuilder/debug/294.jar



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




build.gradle



apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig
applicationId "com.dagkot"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""435e9075f348868c2714fe7c6895efa5""

debug
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", ""http://api.openweathermap.org/data/2.5/""
buildConfigField "String", "API_KEY", ""xxxx""




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1',
exclude group: 'com.android.support', module: 'support-annotations'
)
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"


// Dagger dependencies
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation "com.google.dagger:dagger:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android:$rootProject.daggerVersion"
implementation "com.google.dagger:dagger-android-support:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-android-processor:$rootProject.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$rootProject.daggerVersion"

//Butterknife dependencies
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'

// Architecture Components Dependencies
kapt "android.arch.lifecycle:compiler:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:extensions:$rootProject.lifeCycle"
implementation "android.arch.lifecycle:reactivestreams:$rootProject.lifeCycle"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"

// Retrofit/RxJava Dependencies
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxAndroidVersion"
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.1.1'

// GSON
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Rx Location Manager
implementation 'io.nlopez.smartlocation:library:3.3.3'
implementation 'io.nlopez.smartlocation:rx:3.3.1'

//Anko Dependencies
implementation "org.jetbrains.anko:anko-commons:$rootProject.anko_version"
implementation "org.jetbrains.anko:anko-design:$rootProject.anko_version"
implementation 'com.android.support:design:27.0.2'

implementation("com.github.hotchemi:permissionsdispatcher:3.1.0")
// if you don't use android.app.Fragment you can exclude support for them
exclude module: "support-v13"

kapt "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"



Help would be much appreciated. Thanks :)







android android-studio kotlin dagger-2 android-coordinatorlayout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 31 '18 at 14:06









EJoshuaS

7,324102951




7,324102951










asked Mar 5 '18 at 14:02









Ankit MehtaAnkit Mehta

2,8993922




2,8993922







  • 2





    just add implementation 'com.android.support:design:27.1.1' in gradle file

    – Tushar Lathiya
    Jun 1 '18 at 12:13







  • 1





    @TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

    – Eswar
    Jul 25 '18 at 10:12












  • If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

    – Aswini Iyer
    Nov 7 '18 at 8:52












  • 2





    just add implementation 'com.android.support:design:27.1.1' in gradle file

    – Tushar Lathiya
    Jun 1 '18 at 12:13







  • 1





    @TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

    – Eswar
    Jul 25 '18 at 10:12












  • If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

    – Aswini Iyer
    Nov 7 '18 at 8:52







2




2





just add implementation 'com.android.support:design:27.1.1' in gradle file

– Tushar Lathiya
Jun 1 '18 at 12:13






just add implementation 'com.android.support:design:27.1.1' in gradle file

– Tushar Lathiya
Jun 1 '18 at 12:13





1




1





@TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

– Eswar
Jul 25 '18 at 10:12






@TusharLathiya I have a similar problem but downgrading has worked for me. I am using version 27.0.0

– Eswar
Jul 25 '18 at 10:12














If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

– Aswini Iyer
Nov 7 '18 at 8:52





If you ever had installed firebase-ui in app dependency, this can occur.. I spent hell a lot of time to figure this out! I never need firebase-ui as i was using picasso to retrieve images from firebase storage.

– Aswini Iyer
Nov 7 '18 at 8:52












19 Answers
19






active

oldest

votes


















195














It worked when I downgrade the support appcompat gradle dependency, like follwing :



implementation 'com.android.support:appcompat-v7:27.0.2'


previously it was



implementation 'com.android.support:appcompat-v7:27.1.0'


OR



Also this can be fixed by just adding support design dependency
of version 27.1.0 or above to your app level build.gradle as following :



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





share|improve this answer




















  • 36





    Once they publish new versions, they make us crazy because of weird errors. :|

    – Nguyen Minh Binh
    May 17 '18 at 6:10











  • Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

    – Marcin Orlowski
    Jun 6 '18 at 7:53






  • 1





    change it to compile 'com.android.support:design:27.1.0' in the new versions

    – Milad
    Jun 6 '18 at 13:28











  • @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

    – Eswar
    Jul 25 '18 at 10:13











  • try adding support design dependency.

    – Ankit Mehta
    Jul 26 '18 at 6:04


















69














I faced the same problem,
I added android support design dependencies to the app level build.gradle



Add following:



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


in build.gradle. Now its working for me.






share|improve this answer

























  • didn't work for me.

    – Ankit Mehta
    Mar 7 '18 at 14:49











  • Worked for me thanks

    – Sp4Rx
    Mar 29 '18 at 10:52






  • 1





    Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

    – Hong
    Mar 31 '18 at 4:48











  • Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

    – f3d0r
    Jul 31 '18 at 20:07


















26














It might be cause of a library, I faced it because of Glide.



It was



implementation 'com.github.bumptech.glide:glide:4.7.1'


So I added exclude group: "com.android.support" And it becomes



implementation ('com.github.bumptech.glide:glide:4.7.1') 
exclude group: "com.android.support"






share|improve this answer























  • I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

    – KhanStan99
    Jul 11 '18 at 11:36


















12














Use the latest supportLibrary, version 27.1.1 to solve the problem. worked for me. (many bug fixes included - see changelog)






share|improve this answer




















  • 1





    I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

    – Trinity
    Apr 16 '18 at 13:30











  • implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

    – LOG_TAG
    Jun 27 '18 at 8:50


















11














Make sure these two are the same version in your app level build.gradle file



 implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'


I think that should solve the problem






share|improve this answer






























    6














    I m using android studio 3.0
    and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.



    Add Following in gradle
    implementation 'com.android.support:design:27.1.1'






    share|improve this answer






























      6














      Personally, I add the following line to my app/build.gradle:



      implementation "com.android.support:design:$rootProject.ext.supportLibVersion"


      With this syntax, version is dynamical.






      share|improve this answer






























        5














        Use



        implementation 'com.android.support:appcompat-v7:27.1.1'


        Don't use like



        implementation 'com.android.support:appcompat-v7:27.+'


        It may give you an error and don't use an older version than this.



        or event don't do like this



        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support:design:27.1.1'


        etc... numbers of libraries and then



        implementation 'com.android.support:appcompat-v7:27.+'


        the same library but it has a different version, it can give you an error.






        share|improve this answer




















        • 1





          If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

          – ForeverZer0
          Jun 27 '18 at 1:43











        • Ok , so give me suggestions.

          – Deven Chavda
          Jun 27 '18 at 1:45






        • 1





          There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

          – ForeverZer0
          Jun 27 '18 at 1:47












        • @ForeverZer0 thanks for make me correct

          – Deven Chavda
          Jun 27 '18 at 1:51






        • 1





          No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

          – ForeverZer0
          Jun 27 '18 at 1:59


















        4














        I downgrade the support



        previously it was
        implementation 'com.android.support:appcompat-v7:27.0.2'


        Use it



        implementation 'com.android.support:appcompat-v7:27.1.0'

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


        Its Working Happy Codng






        share|improve this answer


















        • 4





          Seems more like an upgrade if you go from 27.0.2 to 27.1.0

          – Denny
          Nov 29 '18 at 21:55











        • bro it's working

          – Keshav Gera
          Jan 22 at 5:06


















        2














        I know it's a late answer but I had the same problem and my solution was just adding implementation 'com.android.support:design:28.0.0 or any above support design libraries !!






        share|improve this answer






























          2














          Important Update



          Android support libraries will not be updated after 28.0.0. According to Support Library Release Notes -




          This will be the last feature release under the android.support
          packaging, and developers are encouraged to migrate to AndroidX 1.0.0.




          So use AndroidX support libraries instead. In your case design library is now available in material package.



          dependencies 
          implementation 'com.google.android.material:material:1.0.0' // instead of design
          implementation 'androidx.appcompat:appcompat:1.0.2' // instead of support-v7



          I have put latest versions in dependency, you can check latest version here at read time.



          Useful Posts :



          1. AndroidX introduction & integration

          2. Learn about Jetifier (engine behind AndroidX migration)

          3. Some Do's and Dont's





          share|improve this answer






























            1














            As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.



            And check thoroughly in build.gradle for dependancy with + sign like this.



            implementation 'com.android.support:support-v4:28.+'


            If there are any dependencies like this, just update them with a specific version.
            After that:



            1. Sync gradle.

            2. Clean your project.

            3. Rebuild the project.





            share|improve this answer




















            • 1





              This worked for me.

              – Dileep Perla
              Aug 28 '18 at 7:09


















            1














            If any of the answers mentioned here doesn't work then go to File > Invalidate Catches/Restart






            share|improve this answer























            • it doesn´t help :(

              – Elenasys
              Aug 6 '18 at 18:21



















            1














            The solution for this is that remove this following dependency:



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


            put general dependencies as:



            dependencies 
            implementation fileTree(include: ['*.jar'], dir: 'libs')
            //noinspection GradleCompatible
            implementation 'com.android.support:appcompat-v7:27.1.1'
            implementation 'com.android.support:support-compat:26.1.0'
            implementation 'com.android.support:multidex:1.0.3'
            implementation 'com.android.support:support-v4:26.1.0'
            testImplementation 'junit:junit:4.12'
            androidTestImplementation 'com.android.support.test:runner:1.0.2'
            androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
            implementation 'com.facebook.android:audience-network-sdk:4.99.1'






            share|improve this answer






























              1














              Your build script should match with application build.gradle dependencies.



              ext 
              buildToolsVersion = "27.0.3"
              minSdkVersion = 16
              compileSdkVersion = 27
              targetSdkVersion = 26
              supportLibVersion = "27.1.1"



              dependencies
              .................
              ...................

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



              if you want to downgrade dependencies then also downgrade supportLibVersion and buildToolsVersion .






              share|improve this answer






























                0














                I had this problem too; and i resolved that in this way:



                configurations.all 
                resolutionStrategy.eachDependency DependencyResolveDetails details ->
                def requested = details.requested
                if (requested.group == 'com.android.support')
                if (!requested.name.startsWith("multidex"))
                details.useVersion '26.0.1'






                be careful my min SDk was 26 , you have to change it with yours!






                share|improve this answer






























                  0














                  I got this error after update com.android.support.constraint:constraint-layout from 1.1.0 to 1.1.3. Maybe worth to try.






                  share|improve this answer






























                    0














                    Adding this to project's gradle.properties fixed it for us:



                    android.enableJetifier=true
                    android.useAndroidX=true





                    share|improve this answer






























                      -1














                      Changed all dependencies to compile rather than implementation, then I rebuild the project without errors. Then I switched back to implementation rather than leaving it as compile.






                      share|improve this answer






















                        Your Answer






                        StackExchange.ifUsing("editor", function ()
                        StackExchange.using("externalEditor", function ()
                        StackExchange.using("snippets", function ()
                        StackExchange.snippets.init();
                        );
                        );
                        , "code-snippets");

                        StackExchange.ready(function()
                        var channelOptions =
                        tags: "".split(" "),
                        id: "1"
                        ;
                        initTagRenderer("".split(" "), "".split(" "), channelOptions);

                        StackExchange.using("externalEditor", function()
                        // Have to fire editor after snippets, if snippets enabled
                        if (StackExchange.settings.snippets.snippetsEnabled)
                        StackExchange.using("snippets", function()
                        createEditor();
                        );

                        else
                        createEditor();

                        );

                        function createEditor()
                        StackExchange.prepareEditor(
                        heartbeatType: 'answer',
                        autoActivateHeartbeat: false,
                        convertImagesToLinks: true,
                        noModals: true,
                        showLowRepImageUploadWarning: true,
                        reputationToPostImages: 10,
                        bindNavPrevention: true,
                        postfix: "",
                        imageUploader:
                        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                        allowUrls: true
                        ,
                        onDemand: true,
                        discardSelector: ".discard-answer"
                        ,immediatelyShowMarkdownHelp:true
                        );



                        );













                        draft saved

                        draft discarded


















                        StackExchange.ready(
                        function ()
                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49112190%2ferror-program-type-already-present-android-support-design-widget-coordinatorl%23new-answer', 'question_page');

                        );

                        Post as a guest















                        Required, but never shown

























                        19 Answers
                        19






                        active

                        oldest

                        votes








                        19 Answers
                        19






                        active

                        oldest

                        votes









                        active

                        oldest

                        votes






                        active

                        oldest

                        votes









                        195














                        It worked when I downgrade the support appcompat gradle dependency, like follwing :



                        implementation 'com.android.support:appcompat-v7:27.0.2'


                        previously it was



                        implementation 'com.android.support:appcompat-v7:27.1.0'


                        OR



                        Also this can be fixed by just adding support design dependency
                        of version 27.1.0 or above to your app level build.gradle as following :



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





                        share|improve this answer




















                        • 36





                          Once they publish new versions, they make us crazy because of weird errors. :|

                          – Nguyen Minh Binh
                          May 17 '18 at 6:10











                        • Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                          – Marcin Orlowski
                          Jun 6 '18 at 7:53






                        • 1





                          change it to compile 'com.android.support:design:27.1.0' in the new versions

                          – Milad
                          Jun 6 '18 at 13:28











                        • @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                          – Eswar
                          Jul 25 '18 at 10:13











                        • try adding support design dependency.

                          – Ankit Mehta
                          Jul 26 '18 at 6:04















                        195














                        It worked when I downgrade the support appcompat gradle dependency, like follwing :



                        implementation 'com.android.support:appcompat-v7:27.0.2'


                        previously it was



                        implementation 'com.android.support:appcompat-v7:27.1.0'


                        OR



                        Also this can be fixed by just adding support design dependency
                        of version 27.1.0 or above to your app level build.gradle as following :



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





                        share|improve this answer




















                        • 36





                          Once they publish new versions, they make us crazy because of weird errors. :|

                          – Nguyen Minh Binh
                          May 17 '18 at 6:10











                        • Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                          – Marcin Orlowski
                          Jun 6 '18 at 7:53






                        • 1





                          change it to compile 'com.android.support:design:27.1.0' in the new versions

                          – Milad
                          Jun 6 '18 at 13:28











                        • @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                          – Eswar
                          Jul 25 '18 at 10:13











                        • try adding support design dependency.

                          – Ankit Mehta
                          Jul 26 '18 at 6:04













                        195












                        195








                        195







                        It worked when I downgrade the support appcompat gradle dependency, like follwing :



                        implementation 'com.android.support:appcompat-v7:27.0.2'


                        previously it was



                        implementation 'com.android.support:appcompat-v7:27.1.0'


                        OR



                        Also this can be fixed by just adding support design dependency
                        of version 27.1.0 or above to your app level build.gradle as following :



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





                        share|improve this answer















                        It worked when I downgrade the support appcompat gradle dependency, like follwing :



                        implementation 'com.android.support:appcompat-v7:27.0.2'


                        previously it was



                        implementation 'com.android.support:appcompat-v7:27.1.0'


                        OR



                        Also this can be fixed by just adding support design dependency
                        of version 27.1.0 or above to your app level build.gradle as following :



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






                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jul 20 '18 at 8:15

























                        answered Mar 7 '18 at 15:21









                        Ankit MehtaAnkit Mehta

                        2,8993922




                        2,8993922







                        • 36





                          Once they publish new versions, they make us crazy because of weird errors. :|

                          – Nguyen Minh Binh
                          May 17 '18 at 6:10











                        • Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                          – Marcin Orlowski
                          Jun 6 '18 at 7:53






                        • 1





                          change it to compile 'com.android.support:design:27.1.0' in the new versions

                          – Milad
                          Jun 6 '18 at 13:28











                        • @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                          – Eswar
                          Jul 25 '18 at 10:13











                        • try adding support design dependency.

                          – Ankit Mehta
                          Jul 26 '18 at 6:04












                        • 36





                          Once they publish new versions, they make us crazy because of weird errors. :|

                          – Nguyen Minh Binh
                          May 17 '18 at 6:10











                        • Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                          – Marcin Orlowski
                          Jun 6 '18 at 7:53






                        • 1





                          change it to compile 'com.android.support:design:27.1.0' in the new versions

                          – Milad
                          Jun 6 '18 at 13:28











                        • @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                          – Eswar
                          Jul 25 '18 at 10:13











                        • try adding support design dependency.

                          – Ankit Mehta
                          Jul 26 '18 at 6:04







                        36




                        36





                        Once they publish new versions, they make us crazy because of weird errors. :|

                        – Nguyen Minh Binh
                        May 17 '18 at 6:10





                        Once they publish new versions, they make us crazy because of weird errors. :|

                        – Nguyen Minh Binh
                        May 17 '18 at 6:10













                        Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                        – Marcin Orlowski
                        Jun 6 '18 at 7:53





                        Actually it was pretty opposite in my case. 27.0.x was failing, while bumping to 27.1.0 made project compile... meh...

                        – Marcin Orlowski
                        Jun 6 '18 at 7:53




                        1




                        1





                        change it to compile 'com.android.support:design:27.1.0' in the new versions

                        – Milad
                        Jun 6 '18 at 13:28





                        change it to compile 'com.android.support:design:27.1.0' in the new versions

                        – Milad
                        Jun 6 '18 at 13:28













                        @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                        – Eswar
                        Jul 25 '18 at 10:13





                        @AnkitMehta I have a similar problem and downgrading hasn't worked for me.

                        – Eswar
                        Jul 25 '18 at 10:13













                        try adding support design dependency.

                        – Ankit Mehta
                        Jul 26 '18 at 6:04





                        try adding support design dependency.

                        – Ankit Mehta
                        Jul 26 '18 at 6:04













                        69














                        I faced the same problem,
                        I added android support design dependencies to the app level build.gradle



                        Add following:



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


                        in build.gradle. Now its working for me.






                        share|improve this answer

























                        • didn't work for me.

                          – Ankit Mehta
                          Mar 7 '18 at 14:49











                        • Worked for me thanks

                          – Sp4Rx
                          Mar 29 '18 at 10:52






                        • 1





                          Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                          – Hong
                          Mar 31 '18 at 4:48











                        • Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                          – f3d0r
                          Jul 31 '18 at 20:07















                        69














                        I faced the same problem,
                        I added android support design dependencies to the app level build.gradle



                        Add following:



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


                        in build.gradle. Now its working for me.






                        share|improve this answer

























                        • didn't work for me.

                          – Ankit Mehta
                          Mar 7 '18 at 14:49











                        • Worked for me thanks

                          – Sp4Rx
                          Mar 29 '18 at 10:52






                        • 1





                          Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                          – Hong
                          Mar 31 '18 at 4:48











                        • Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                          – f3d0r
                          Jul 31 '18 at 20:07













                        69












                        69








                        69







                        I faced the same problem,
                        I added android support design dependencies to the app level build.gradle



                        Add following:



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


                        in build.gradle. Now its working for me.






                        share|improve this answer















                        I faced the same problem,
                        I added android support design dependencies to the app level build.gradle



                        Add following:



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


                        in build.gradle. Now its working for me.







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Apr 17 '18 at 6:57









                        daniu

                        7,69321636




                        7,69321636










                        answered Mar 6 '18 at 5:25









                        Balaji PurusothamanBalaji Purusothaman

                        79142




                        79142












                        • didn't work for me.

                          – Ankit Mehta
                          Mar 7 '18 at 14:49











                        • Worked for me thanks

                          – Sp4Rx
                          Mar 29 '18 at 10:52






                        • 1





                          Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                          – Hong
                          Mar 31 '18 at 4:48











                        • Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                          – f3d0r
                          Jul 31 '18 at 20:07

















                        • didn't work for me.

                          – Ankit Mehta
                          Mar 7 '18 at 14:49











                        • Worked for me thanks

                          – Sp4Rx
                          Mar 29 '18 at 10:52






                        • 1





                          Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                          – Hong
                          Mar 31 '18 at 4:48











                        • Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                          – f3d0r
                          Jul 31 '18 at 20:07
















                        didn't work for me.

                        – Ankit Mehta
                        Mar 7 '18 at 14:49





                        didn't work for me.

                        – Ankit Mehta
                        Mar 7 '18 at 14:49













                        Worked for me thanks

                        – Sp4Rx
                        Mar 29 '18 at 10:52





                        Worked for me thanks

                        – Sp4Rx
                        Mar 29 '18 at 10:52




                        1




                        1





                        Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                        – Hong
                        Mar 31 '18 at 4:48





                        Works for me. This problem occurred after a library started to use 27.1.0 while the app was still using 26.x.x.

                        – Hong
                        Mar 31 '18 at 4:48













                        Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                        – f3d0r
                        Jul 31 '18 at 20:07





                        Cleaning/rebuilding the project might help if it doesn't fix the issue immediately. That's what worked for me.

                        – f3d0r
                        Jul 31 '18 at 20:07











                        26














                        It might be cause of a library, I faced it because of Glide.



                        It was



                        implementation 'com.github.bumptech.glide:glide:4.7.1'


                        So I added exclude group: "com.android.support" And it becomes



                        implementation ('com.github.bumptech.glide:glide:4.7.1') 
                        exclude group: "com.android.support"






                        share|improve this answer























                        • I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                          – KhanStan99
                          Jul 11 '18 at 11:36















                        26














                        It might be cause of a library, I faced it because of Glide.



                        It was



                        implementation 'com.github.bumptech.glide:glide:4.7.1'


                        So I added exclude group: "com.android.support" And it becomes



                        implementation ('com.github.bumptech.glide:glide:4.7.1') 
                        exclude group: "com.android.support"






                        share|improve this answer























                        • I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                          – KhanStan99
                          Jul 11 '18 at 11:36













                        26












                        26








                        26







                        It might be cause of a library, I faced it because of Glide.



                        It was



                        implementation 'com.github.bumptech.glide:glide:4.7.1'


                        So I added exclude group: "com.android.support" And it becomes



                        implementation ('com.github.bumptech.glide:glide:4.7.1') 
                        exclude group: "com.android.support"






                        share|improve this answer













                        It might be cause of a library, I faced it because of Glide.



                        It was



                        implementation 'com.github.bumptech.glide:glide:4.7.1'


                        So I added exclude group: "com.android.support" And it becomes



                        implementation ('com.github.bumptech.glide:glide:4.7.1') 
                        exclude group: "com.android.support"







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Jun 29 '18 at 6:40









                        KishanSolanki124KishanSolanki124

                        2,0471421




                        2,0471421












                        • I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                          – KhanStan99
                          Jul 11 '18 at 11:36

















                        • I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                          – KhanStan99
                          Jul 11 '18 at 11:36
















                        I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                        – KhanStan99
                        Jul 11 '18 at 11:36





                        I have added this line to all 3 of my dependencies i have used. It resolved my error. Thanks.

                        – KhanStan99
                        Jul 11 '18 at 11:36











                        12














                        Use the latest supportLibrary, version 27.1.1 to solve the problem. worked for me. (many bug fixes included - see changelog)






                        share|improve this answer




















                        • 1





                          I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                          – Trinity
                          Apr 16 '18 at 13:30











                        • implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                          – LOG_TAG
                          Jun 27 '18 at 8:50















                        12














                        Use the latest supportLibrary, version 27.1.1 to solve the problem. worked for me. (many bug fixes included - see changelog)






                        share|improve this answer




















                        • 1





                          I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                          – Trinity
                          Apr 16 '18 at 13:30











                        • implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                          – LOG_TAG
                          Jun 27 '18 at 8:50













                        12












                        12








                        12







                        Use the latest supportLibrary, version 27.1.1 to solve the problem. worked for me. (many bug fixes included - see changelog)






                        share|improve this answer















                        Use the latest supportLibrary, version 27.1.1 to solve the problem. worked for me. (many bug fixes included - see changelog)







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jun 6 '18 at 7:56









                        Marcin Orlowski

                        58.1k890120




                        58.1k890120










                        answered Apr 8 '18 at 8:59









                        LOG_TAGLOG_TAG

                        14.8k106093




                        14.8k106093







                        • 1





                          I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                          – Trinity
                          Apr 16 '18 at 13:30











                        • implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                          – LOG_TAG
                          Jun 27 '18 at 8:50












                        • 1





                          I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                          – Trinity
                          Apr 16 '18 at 13:30











                        • implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                          – LOG_TAG
                          Jun 27 '18 at 8:50







                        1




                        1





                        I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                        – Trinity
                        Apr 16 '18 at 13:30





                        I'm still facing some erros like: Error:Program type already present: org.apache.http.impl.auth.HttpEntityDigester

                        – Trinity
                        Apr 16 '18 at 13:30













                        implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                        – LOG_TAG
                        Jun 27 '18 at 8:50





                        implementation 'com.android.support:design:27.1.0 add this stackoverflow.com/questions/49112190/…

                        – LOG_TAG
                        Jun 27 '18 at 8:50











                        11














                        Make sure these two are the same version in your app level build.gradle file



                         implementation 'com.android.support:appcompat-v7:27.1.1'
                        implementation 'com.android.support:design:27.1.1'


                        I think that should solve the problem






                        share|improve this answer



























                          11














                          Make sure these two are the same version in your app level build.gradle file



                           implementation 'com.android.support:appcompat-v7:27.1.1'
                          implementation 'com.android.support:design:27.1.1'


                          I think that should solve the problem






                          share|improve this answer

























                            11












                            11








                            11







                            Make sure these two are the same version in your app level build.gradle file



                             implementation 'com.android.support:appcompat-v7:27.1.1'
                            implementation 'com.android.support:design:27.1.1'


                            I think that should solve the problem






                            share|improve this answer













                            Make sure these two are the same version in your app level build.gradle file



                             implementation 'com.android.support:appcompat-v7:27.1.1'
                            implementation 'com.android.support:design:27.1.1'


                            I think that should solve the problem







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jul 31 '18 at 10:00









                            James IdowuJames Idowu

                            11114




                            11114





















                                6














                                I m using android studio 3.0
                                and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.



                                Add Following in gradle
                                implementation 'com.android.support:design:27.1.1'






                                share|improve this answer



























                                  6














                                  I m using android studio 3.0
                                  and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.



                                  Add Following in gradle
                                  implementation 'com.android.support:design:27.1.1'






                                  share|improve this answer

























                                    6












                                    6








                                    6







                                    I m using android studio 3.0
                                    and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.



                                    Add Following in gradle
                                    implementation 'com.android.support:design:27.1.1'






                                    share|improve this answer













                                    I m using android studio 3.0
                                    and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.



                                    Add Following in gradle
                                    implementation 'com.android.support:design:27.1.1'







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 20 '18 at 5:03









                                    DhruvishaDhruvisha

                                    7515




                                    7515





















                                        6














                                        Personally, I add the following line to my app/build.gradle:



                                        implementation "com.android.support:design:$rootProject.ext.supportLibVersion"


                                        With this syntax, version is dynamical.






                                        share|improve this answer



























                                          6














                                          Personally, I add the following line to my app/build.gradle:



                                          implementation "com.android.support:design:$rootProject.ext.supportLibVersion"


                                          With this syntax, version is dynamical.






                                          share|improve this answer

























                                            6












                                            6








                                            6







                                            Personally, I add the following line to my app/build.gradle:



                                            implementation "com.android.support:design:$rootProject.ext.supportLibVersion"


                                            With this syntax, version is dynamical.






                                            share|improve this answer













                                            Personally, I add the following line to my app/build.gradle:



                                            implementation "com.android.support:design:$rootProject.ext.supportLibVersion"


                                            With this syntax, version is dynamical.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Nov 29 '18 at 9:31









                                            Jérôme LegrandJérôme Legrand

                                            6115




                                            6115





















                                                5














                                                Use



                                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                                Don't use like



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                It may give you an error and don't use an older version than this.



                                                or event don't do like this



                                                implementation 'com.android.support:appcompat-v7:27.1.1'
                                                implementation 'com.android.support:design:27.1.1'


                                                etc... numbers of libraries and then



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                the same library but it has a different version, it can give you an error.






                                                share|improve this answer




















                                                • 1





                                                  If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:43











                                                • Ok , so give me suggestions.

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:45






                                                • 1





                                                  There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:47












                                                • @ForeverZer0 thanks for make me correct

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:51






                                                • 1





                                                  No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:59















                                                5














                                                Use



                                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                                Don't use like



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                It may give you an error and don't use an older version than this.



                                                or event don't do like this



                                                implementation 'com.android.support:appcompat-v7:27.1.1'
                                                implementation 'com.android.support:design:27.1.1'


                                                etc... numbers of libraries and then



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                the same library but it has a different version, it can give you an error.






                                                share|improve this answer




















                                                • 1





                                                  If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:43











                                                • Ok , so give me suggestions.

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:45






                                                • 1





                                                  There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:47












                                                • @ForeverZer0 thanks for make me correct

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:51






                                                • 1





                                                  No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:59













                                                5












                                                5








                                                5







                                                Use



                                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                                Don't use like



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                It may give you an error and don't use an older version than this.



                                                or event don't do like this



                                                implementation 'com.android.support:appcompat-v7:27.1.1'
                                                implementation 'com.android.support:design:27.1.1'


                                                etc... numbers of libraries and then



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                the same library but it has a different version, it can give you an error.






                                                share|improve this answer















                                                Use



                                                implementation 'com.android.support:appcompat-v7:27.1.1'


                                                Don't use like



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                It may give you an error and don't use an older version than this.



                                                or event don't do like this



                                                implementation 'com.android.support:appcompat-v7:27.1.1'
                                                implementation 'com.android.support:design:27.1.1'


                                                etc... numbers of libraries and then



                                                implementation 'com.android.support:appcompat-v7:27.+'


                                                the same library but it has a different version, it can give you an error.







                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited Nov 6 '18 at 7:44









                                                Shashanth

                                                2,58742237




                                                2,58742237










                                                answered Jun 27 '18 at 1:01









                                                Deven ChavdaDeven Chavda

                                                11416




                                                11416







                                                • 1





                                                  If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:43











                                                • Ok , so give me suggestions.

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:45






                                                • 1





                                                  There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:47












                                                • @ForeverZer0 thanks for make me correct

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:51






                                                • 1





                                                  No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:59












                                                • 1





                                                  If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:43











                                                • Ok , so give me suggestions.

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:45






                                                • 1





                                                  There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:47












                                                • @ForeverZer0 thanks for make me correct

                                                  – Deven Chavda
                                                  Jun 27 '18 at 1:51






                                                • 1





                                                  No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                  – ForeverZer0
                                                  Jun 27 '18 at 1:59







                                                1




                                                1





                                                If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:43





                                                If you are going to post an answer, please try to make sure it is formatted well with grammar, spelling, formatting, etc.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:43













                                                Ok , so give me suggestions.

                                                – Deven Chavda
                                                Jun 27 '18 at 1:45





                                                Ok , so give me suggestions.

                                                – Deven Chavda
                                                Jun 27 '18 at 1:45




                                                1




                                                1





                                                There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:47






                                                There is entire topic about it. stackoverflow.com/help/how-to-answer, although my comment was pretty self-explanatory.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:47














                                                @ForeverZer0 thanks for make me correct

                                                – Deven Chavda
                                                Jun 27 '18 at 1:51





                                                @ForeverZer0 thanks for make me correct

                                                – Deven Chavda
                                                Jun 27 '18 at 1:51




                                                1




                                                1





                                                No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:59





                                                No, not going to give grammar/spelling/English lessons, that is far and above the scope of this site.

                                                – ForeverZer0
                                                Jun 27 '18 at 1:59











                                                4














                                                I downgrade the support



                                                previously it was
                                                implementation 'com.android.support:appcompat-v7:27.0.2'


                                                Use it



                                                implementation 'com.android.support:appcompat-v7:27.1.0'

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


                                                Its Working Happy Codng






                                                share|improve this answer


















                                                • 4





                                                  Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                  – Denny
                                                  Nov 29 '18 at 21:55











                                                • bro it's working

                                                  – Keshav Gera
                                                  Jan 22 at 5:06















                                                4














                                                I downgrade the support



                                                previously it was
                                                implementation 'com.android.support:appcompat-v7:27.0.2'


                                                Use it



                                                implementation 'com.android.support:appcompat-v7:27.1.0'

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


                                                Its Working Happy Codng






                                                share|improve this answer


















                                                • 4





                                                  Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                  – Denny
                                                  Nov 29 '18 at 21:55











                                                • bro it's working

                                                  – Keshav Gera
                                                  Jan 22 at 5:06













                                                4












                                                4








                                                4







                                                I downgrade the support



                                                previously it was
                                                implementation 'com.android.support:appcompat-v7:27.0.2'


                                                Use it



                                                implementation 'com.android.support:appcompat-v7:27.1.0'

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


                                                Its Working Happy Codng






                                                share|improve this answer













                                                I downgrade the support



                                                previously it was
                                                implementation 'com.android.support:appcompat-v7:27.0.2'


                                                Use it



                                                implementation 'com.android.support:appcompat-v7:27.1.0'

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


                                                Its Working Happy Codng







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Nov 15 '18 at 6:00









                                                Keshav GeraKeshav Gera

                                                2,8991828




                                                2,8991828







                                                • 4





                                                  Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                  – Denny
                                                  Nov 29 '18 at 21:55











                                                • bro it's working

                                                  – Keshav Gera
                                                  Jan 22 at 5:06












                                                • 4





                                                  Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                  – Denny
                                                  Nov 29 '18 at 21:55











                                                • bro it's working

                                                  – Keshav Gera
                                                  Jan 22 at 5:06







                                                4




                                                4





                                                Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                – Denny
                                                Nov 29 '18 at 21:55





                                                Seems more like an upgrade if you go from 27.0.2 to 27.1.0

                                                – Denny
                                                Nov 29 '18 at 21:55













                                                bro it's working

                                                – Keshav Gera
                                                Jan 22 at 5:06





                                                bro it's working

                                                – Keshav Gera
                                                Jan 22 at 5:06











                                                2














                                                I know it's a late answer but I had the same problem and my solution was just adding implementation 'com.android.support:design:28.0.0 or any above support design libraries !!






                                                share|improve this answer



























                                                  2














                                                  I know it's a late answer but I had the same problem and my solution was just adding implementation 'com.android.support:design:28.0.0 or any above support design libraries !!






                                                  share|improve this answer

























                                                    2












                                                    2








                                                    2







                                                    I know it's a late answer but I had the same problem and my solution was just adding implementation 'com.android.support:design:28.0.0 or any above support design libraries !!






                                                    share|improve this answer













                                                    I know it's a late answer but I had the same problem and my solution was just adding implementation 'com.android.support:design:28.0.0 or any above support design libraries !!







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Oct 31 '18 at 15:03









                                                    raedraed

                                                    11123




                                                    11123





















                                                        2














                                                        Important Update



                                                        Android support libraries will not be updated after 28.0.0. According to Support Library Release Notes -




                                                        This will be the last feature release under the android.support
                                                        packaging, and developers are encouraged to migrate to AndroidX 1.0.0.




                                                        So use AndroidX support libraries instead. In your case design library is now available in material package.



                                                        dependencies 
                                                        implementation 'com.google.android.material:material:1.0.0' // instead of design
                                                        implementation 'androidx.appcompat:appcompat:1.0.2' // instead of support-v7



                                                        I have put latest versions in dependency, you can check latest version here at read time.



                                                        Useful Posts :



                                                        1. AndroidX introduction & integration

                                                        2. Learn about Jetifier (engine behind AndroidX migration)

                                                        3. Some Do's and Dont's





                                                        share|improve this answer



























                                                          2














                                                          Important Update



                                                          Android support libraries will not be updated after 28.0.0. According to Support Library Release Notes -




                                                          This will be the last feature release under the android.support
                                                          packaging, and developers are encouraged to migrate to AndroidX 1.0.0.




                                                          So use AndroidX support libraries instead. In your case design library is now available in material package.



                                                          dependencies 
                                                          implementation 'com.google.android.material:material:1.0.0' // instead of design
                                                          implementation 'androidx.appcompat:appcompat:1.0.2' // instead of support-v7



                                                          I have put latest versions in dependency, you can check latest version here at read time.



                                                          Useful Posts :



                                                          1. AndroidX introduction & integration

                                                          2. Learn about Jetifier (engine behind AndroidX migration)

                                                          3. Some Do's and Dont's





                                                          share|improve this answer

























                                                            2












                                                            2








                                                            2







                                                            Important Update



                                                            Android support libraries will not be updated after 28.0.0. According to Support Library Release Notes -




                                                            This will be the last feature release under the android.support
                                                            packaging, and developers are encouraged to migrate to AndroidX 1.0.0.




                                                            So use AndroidX support libraries instead. In your case design library is now available in material package.



                                                            dependencies 
                                                            implementation 'com.google.android.material:material:1.0.0' // instead of design
                                                            implementation 'androidx.appcompat:appcompat:1.0.2' // instead of support-v7



                                                            I have put latest versions in dependency, you can check latest version here at read time.



                                                            Useful Posts :



                                                            1. AndroidX introduction & integration

                                                            2. Learn about Jetifier (engine behind AndroidX migration)

                                                            3. Some Do's and Dont's





                                                            share|improve this answer













                                                            Important Update



                                                            Android support libraries will not be updated after 28.0.0. According to Support Library Release Notes -




                                                            This will be the last feature release under the android.support
                                                            packaging, and developers are encouraged to migrate to AndroidX 1.0.0.




                                                            So use AndroidX support libraries instead. In your case design library is now available in material package.



                                                            dependencies 
                                                            implementation 'com.google.android.material:material:1.0.0' // instead of design
                                                            implementation 'androidx.appcompat:appcompat:1.0.2' // instead of support-v7



                                                            I have put latest versions in dependency, you can check latest version here at read time.



                                                            Useful Posts :



                                                            1. AndroidX introduction & integration

                                                            2. Learn about Jetifier (engine behind AndroidX migration)

                                                            3. Some Do's and Dont's






                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Nov 28 '18 at 11:30









                                                            KhemrajKhemraj

                                                            15k44788




                                                            15k44788





















                                                                1














                                                                As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.



                                                                And check thoroughly in build.gradle for dependancy with + sign like this.



                                                                implementation 'com.android.support:support-v4:28.+'


                                                                If there are any dependencies like this, just update them with a specific version.
                                                                After that:



                                                                1. Sync gradle.

                                                                2. Clean your project.

                                                                3. Rebuild the project.





                                                                share|improve this answer




















                                                                • 1





                                                                  This worked for me.

                                                                  – Dileep Perla
                                                                  Aug 28 '18 at 7:09















                                                                1














                                                                As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.



                                                                And check thoroughly in build.gradle for dependancy with + sign like this.



                                                                implementation 'com.android.support:support-v4:28.+'


                                                                If there are any dependencies like this, just update them with a specific version.
                                                                After that:



                                                                1. Sync gradle.

                                                                2. Clean your project.

                                                                3. Rebuild the project.





                                                                share|improve this answer




















                                                                • 1





                                                                  This worked for me.

                                                                  – Dileep Perla
                                                                  Aug 28 '18 at 7:09













                                                                1












                                                                1








                                                                1







                                                                As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.



                                                                And check thoroughly in build.gradle for dependancy with + sign like this.



                                                                implementation 'com.android.support:support-v4:28.+'


                                                                If there are any dependencies like this, just update them with a specific version.
                                                                After that:



                                                                1. Sync gradle.

                                                                2. Clean your project.

                                                                3. Rebuild the project.





                                                                share|improve this answer















                                                                As android latest update doesn't support 'compile' keyword use 'implementation' in place inside your module build.gradle file.



                                                                And check thoroughly in build.gradle for dependancy with + sign like this.



                                                                implementation 'com.android.support:support-v4:28.+'


                                                                If there are any dependencies like this, just update them with a specific version.
                                                                After that:



                                                                1. Sync gradle.

                                                                2. Clean your project.

                                                                3. Rebuild the project.






                                                                share|improve this answer














                                                                share|improve this answer



                                                                share|improve this answer








                                                                edited Jun 27 '18 at 8:46

























                                                                answered Jun 27 '18 at 7:32









                                                                amit pandyaamit pandya

                                                                800715




                                                                800715







                                                                • 1





                                                                  This worked for me.

                                                                  – Dileep Perla
                                                                  Aug 28 '18 at 7:09












                                                                • 1





                                                                  This worked for me.

                                                                  – Dileep Perla
                                                                  Aug 28 '18 at 7:09







                                                                1




                                                                1





                                                                This worked for me.

                                                                – Dileep Perla
                                                                Aug 28 '18 at 7:09





                                                                This worked for me.

                                                                – Dileep Perla
                                                                Aug 28 '18 at 7:09











                                                                1














                                                                If any of the answers mentioned here doesn't work then go to File > Invalidate Catches/Restart






                                                                share|improve this answer























                                                                • it doesn´t help :(

                                                                  – Elenasys
                                                                  Aug 6 '18 at 18:21
















                                                                1














                                                                If any of the answers mentioned here doesn't work then go to File > Invalidate Catches/Restart






                                                                share|improve this answer























                                                                • it doesn´t help :(

                                                                  – Elenasys
                                                                  Aug 6 '18 at 18:21














                                                                1












                                                                1








                                                                1







                                                                If any of the answers mentioned here doesn't work then go to File > Invalidate Catches/Restart






                                                                share|improve this answer













                                                                If any of the answers mentioned here doesn't work then go to File > Invalidate Catches/Restart







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Jul 17 '18 at 14:16









                                                                Ssubrat RrudraSsubrat Rrudra

                                                                2316




                                                                2316












                                                                • it doesn´t help :(

                                                                  – Elenasys
                                                                  Aug 6 '18 at 18:21


















                                                                • it doesn´t help :(

                                                                  – Elenasys
                                                                  Aug 6 '18 at 18:21

















                                                                it doesn´t help :(

                                                                – Elenasys
                                                                Aug 6 '18 at 18:21






                                                                it doesn´t help :(

                                                                – Elenasys
                                                                Aug 6 '18 at 18:21












                                                                1














                                                                The solution for this is that remove this following dependency:



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


                                                                put general dependencies as:



                                                                dependencies 
                                                                implementation fileTree(include: ['*.jar'], dir: 'libs')
                                                                //noinspection GradleCompatible
                                                                implementation 'com.android.support:appcompat-v7:27.1.1'
                                                                implementation 'com.android.support:support-compat:26.1.0'
                                                                implementation 'com.android.support:multidex:1.0.3'
                                                                implementation 'com.android.support:support-v4:26.1.0'
                                                                testImplementation 'junit:junit:4.12'
                                                                androidTestImplementation 'com.android.support.test:runner:1.0.2'
                                                                androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                                                                implementation 'com.facebook.android:audience-network-sdk:4.99.1'






                                                                share|improve this answer



























                                                                  1














                                                                  The solution for this is that remove this following dependency:



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


                                                                  put general dependencies as:



                                                                  dependencies 
                                                                  implementation fileTree(include: ['*.jar'], dir: 'libs')
                                                                  //noinspection GradleCompatible
                                                                  implementation 'com.android.support:appcompat-v7:27.1.1'
                                                                  implementation 'com.android.support:support-compat:26.1.0'
                                                                  implementation 'com.android.support:multidex:1.0.3'
                                                                  implementation 'com.android.support:support-v4:26.1.0'
                                                                  testImplementation 'junit:junit:4.12'
                                                                  androidTestImplementation 'com.android.support.test:runner:1.0.2'
                                                                  androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                                                                  implementation 'com.facebook.android:audience-network-sdk:4.99.1'






                                                                  share|improve this answer

























                                                                    1












                                                                    1








                                                                    1







                                                                    The solution for this is that remove this following dependency:



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


                                                                    put general dependencies as:



                                                                    dependencies 
                                                                    implementation fileTree(include: ['*.jar'], dir: 'libs')
                                                                    //noinspection GradleCompatible
                                                                    implementation 'com.android.support:appcompat-v7:27.1.1'
                                                                    implementation 'com.android.support:support-compat:26.1.0'
                                                                    implementation 'com.android.support:multidex:1.0.3'
                                                                    implementation 'com.android.support:support-v4:26.1.0'
                                                                    testImplementation 'junit:junit:4.12'
                                                                    androidTestImplementation 'com.android.support.test:runner:1.0.2'
                                                                    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                                                                    implementation 'com.facebook.android:audience-network-sdk:4.99.1'






                                                                    share|improve this answer













                                                                    The solution for this is that remove this following dependency:



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


                                                                    put general dependencies as:



                                                                    dependencies 
                                                                    implementation fileTree(include: ['*.jar'], dir: 'libs')
                                                                    //noinspection GradleCompatible
                                                                    implementation 'com.android.support:appcompat-v7:27.1.1'
                                                                    implementation 'com.android.support:support-compat:26.1.0'
                                                                    implementation 'com.android.support:multidex:1.0.3'
                                                                    implementation 'com.android.support:support-v4:26.1.0'
                                                                    testImplementation 'junit:junit:4.12'
                                                                    androidTestImplementation 'com.android.support.test:runner:1.0.2'
                                                                    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                                                                    implementation 'com.facebook.android:audience-network-sdk:4.99.1'







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Sep 11 '18 at 10:59









                                                                    Pradeep SheoranPradeep Sheoran

                                                                    14810




                                                                    14810





















                                                                        1














                                                                        Your build script should match with application build.gradle dependencies.



                                                                        ext 
                                                                        buildToolsVersion = "27.0.3"
                                                                        minSdkVersion = 16
                                                                        compileSdkVersion = 27
                                                                        targetSdkVersion = 26
                                                                        supportLibVersion = "27.1.1"



                                                                        dependencies
                                                                        .................
                                                                        ...................

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



                                                                        if you want to downgrade dependencies then also downgrade supportLibVersion and buildToolsVersion .






                                                                        share|improve this answer



























                                                                          1














                                                                          Your build script should match with application build.gradle dependencies.



                                                                          ext 
                                                                          buildToolsVersion = "27.0.3"
                                                                          minSdkVersion = 16
                                                                          compileSdkVersion = 27
                                                                          targetSdkVersion = 26
                                                                          supportLibVersion = "27.1.1"



                                                                          dependencies
                                                                          .................
                                                                          ...................

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



                                                                          if you want to downgrade dependencies then also downgrade supportLibVersion and buildToolsVersion .






                                                                          share|improve this answer

























                                                                            1












                                                                            1








                                                                            1







                                                                            Your build script should match with application build.gradle dependencies.



                                                                            ext 
                                                                            buildToolsVersion = "27.0.3"
                                                                            minSdkVersion = 16
                                                                            compileSdkVersion = 27
                                                                            targetSdkVersion = 26
                                                                            supportLibVersion = "27.1.1"



                                                                            dependencies
                                                                            .................
                                                                            ...................

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



                                                                            if you want to downgrade dependencies then also downgrade supportLibVersion and buildToolsVersion .






                                                                            share|improve this answer













                                                                            Your build script should match with application build.gradle dependencies.



                                                                            ext 
                                                                            buildToolsVersion = "27.0.3"
                                                                            minSdkVersion = 16
                                                                            compileSdkVersion = 27
                                                                            targetSdkVersion = 26
                                                                            supportLibVersion = "27.1.1"



                                                                            dependencies
                                                                            .................
                                                                            ...................

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



                                                                            if you want to downgrade dependencies then also downgrade supportLibVersion and buildToolsVersion .







                                                                            share|improve this answer












                                                                            share|improve this answer



                                                                            share|improve this answer










                                                                            answered Jan 31 at 7:28









                                                                            user3143487user3143487

                                                                            766




                                                                            766





















                                                                                0














                                                                                I had this problem too; and i resolved that in this way:



                                                                                configurations.all 
                                                                                resolutionStrategy.eachDependency DependencyResolveDetails details ->
                                                                                def requested = details.requested
                                                                                if (requested.group == 'com.android.support')
                                                                                if (!requested.name.startsWith("multidex"))
                                                                                details.useVersion '26.0.1'






                                                                                be careful my min SDk was 26 , you have to change it with yours!






                                                                                share|improve this answer



























                                                                                  0














                                                                                  I had this problem too; and i resolved that in this way:



                                                                                  configurations.all 
                                                                                  resolutionStrategy.eachDependency DependencyResolveDetails details ->
                                                                                  def requested = details.requested
                                                                                  if (requested.group == 'com.android.support')
                                                                                  if (!requested.name.startsWith("multidex"))
                                                                                  details.useVersion '26.0.1'






                                                                                  be careful my min SDk was 26 , you have to change it with yours!






                                                                                  share|improve this answer

























                                                                                    0












                                                                                    0








                                                                                    0







                                                                                    I had this problem too; and i resolved that in this way:



                                                                                    configurations.all 
                                                                                    resolutionStrategy.eachDependency DependencyResolveDetails details ->
                                                                                    def requested = details.requested
                                                                                    if (requested.group == 'com.android.support')
                                                                                    if (!requested.name.startsWith("multidex"))
                                                                                    details.useVersion '26.0.1'






                                                                                    be careful my min SDk was 26 , you have to change it with yours!






                                                                                    share|improve this answer













                                                                                    I had this problem too; and i resolved that in this way:



                                                                                    configurations.all 
                                                                                    resolutionStrategy.eachDependency DependencyResolveDetails details ->
                                                                                    def requested = details.requested
                                                                                    if (requested.group == 'com.android.support')
                                                                                    if (!requested.name.startsWith("multidex"))
                                                                                    details.useVersion '26.0.1'






                                                                                    be careful my min SDk was 26 , you have to change it with yours!







                                                                                    share|improve this answer












                                                                                    share|improve this answer



                                                                                    share|improve this answer










                                                                                    answered Sep 3 '18 at 4:26









                                                                                    محمدمحمد

                                                                                    1




                                                                                    1





















                                                                                        0














                                                                                        I got this error after update com.android.support.constraint:constraint-layout from 1.1.0 to 1.1.3. Maybe worth to try.






                                                                                        share|improve this answer



























                                                                                          0














                                                                                          I got this error after update com.android.support.constraint:constraint-layout from 1.1.0 to 1.1.3. Maybe worth to try.






                                                                                          share|improve this answer

























                                                                                            0












                                                                                            0








                                                                                            0







                                                                                            I got this error after update com.android.support.constraint:constraint-layout from 1.1.0 to 1.1.3. Maybe worth to try.






                                                                                            share|improve this answer













                                                                                            I got this error after update com.android.support.constraint:constraint-layout from 1.1.0 to 1.1.3. Maybe worth to try.







                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Nov 2 '18 at 2:04









                                                                                            Harry HanHarry Han

                                                                                            20137




                                                                                            20137





















                                                                                                0














                                                                                                Adding this to project's gradle.properties fixed it for us:



                                                                                                android.enableJetifier=true
                                                                                                android.useAndroidX=true





                                                                                                share|improve this answer



























                                                                                                  0














                                                                                                  Adding this to project's gradle.properties fixed it for us:



                                                                                                  android.enableJetifier=true
                                                                                                  android.useAndroidX=true





                                                                                                  share|improve this answer

























                                                                                                    0












                                                                                                    0








                                                                                                    0







                                                                                                    Adding this to project's gradle.properties fixed it for us:



                                                                                                    android.enableJetifier=true
                                                                                                    android.useAndroidX=true





                                                                                                    share|improve this answer













                                                                                                    Adding this to project's gradle.properties fixed it for us:



                                                                                                    android.enableJetifier=true
                                                                                                    android.useAndroidX=true






                                                                                                    share|improve this answer












                                                                                                    share|improve this answer



                                                                                                    share|improve this answer










                                                                                                    answered Jan 22 at 8:26









                                                                                                    PitelPitel

                                                                                                    1,69822450




                                                                                                    1,69822450





















                                                                                                        -1














                                                                                                        Changed all dependencies to compile rather than implementation, then I rebuild the project without errors. Then I switched back to implementation rather than leaving it as compile.






                                                                                                        share|improve this answer



























                                                                                                          -1














                                                                                                          Changed all dependencies to compile rather than implementation, then I rebuild the project without errors. Then I switched back to implementation rather than leaving it as compile.






                                                                                                          share|improve this answer

























                                                                                                            -1












                                                                                                            -1








                                                                                                            -1







                                                                                                            Changed all dependencies to compile rather than implementation, then I rebuild the project without errors. Then I switched back to implementation rather than leaving it as compile.






                                                                                                            share|improve this answer













                                                                                                            Changed all dependencies to compile rather than implementation, then I rebuild the project without errors. Then I switched back to implementation rather than leaving it as compile.







                                                                                                            share|improve this answer












                                                                                                            share|improve this answer



                                                                                                            share|improve this answer










                                                                                                            answered Jun 19 '18 at 7:11









                                                                                                            Steve WhiteSteve White

                                                                                                            1




                                                                                                            1



























                                                                                                                draft saved

                                                                                                                draft discarded
















































                                                                                                                Thanks for contributing an answer to Stack Overflow!


                                                                                                                • Please be sure to answer the question. Provide details and share your research!

                                                                                                                But avoid


                                                                                                                • Asking for help, clarification, or responding to other answers.

                                                                                                                • Making statements based on opinion; back them up with references or personal experience.

                                                                                                                To learn more, see our tips on writing great answers.




                                                                                                                draft saved


                                                                                                                draft discarded














                                                                                                                StackExchange.ready(
                                                                                                                function ()
                                                                                                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49112190%2ferror-program-type-already-present-android-support-design-widget-coordinatorl%23new-answer', 'question_page');

                                                                                                                );

                                                                                                                Post as a guest















                                                                                                                Required, but never shown





















































                                                                                                                Required, but never shown














                                                                                                                Required, but never shown












                                                                                                                Required, but never shown







                                                                                                                Required, but never shown

































                                                                                                                Required, but never shown














                                                                                                                Required, but never shown












                                                                                                                Required, but never shown







                                                                                                                Required, but never shown







                                                                                                                這個網誌中的熱門文章

                                                                                                                What does pagestruct do in Eviews?

                                                                                                                Dutch intervention in Lombok and Karangasem

                                                                                                                Channel Islands