Gradle: Error: Program type already present: androidx.activity.R$attr“Gradle Version 2.10 is required.” ErrorError : Program type already present: android.support.design.widget.CoordinatorLayout$BehaviorProgram type already present errorWhat does “Program type already present” mean?Program type already present : gradle build errorProgram type already present - ERRORGradle Build Error - Program type already presentGradle: Error: Program type already present: javax.inject.InjectGradle: program type already present

To what extent should we fear giving offense?

Did the Apollo Guidance Computer really use 60% of the world's ICs in 1963?

Is Nikon D500 a good fit for nature and ambient-lighting portraits and occasional other uses?

Count the number of triangles

What should be done with the carbon when using magic to get oxygen from carbon dioxide?

What ways are there to "PEEK" memory sections in (different) BASIC(s)

Defending Castle from Zombies

Could the UK amend the European Withdrawal Act and revoke the Article 50 invocation?

Can I lend at the federal funds rate?

accurate measurement from inaccurate tools

Should I use the words "pyromancy" and "necromancy" even if they don't mean what people think they do?

How do you say "half the time..., the other half ..." in German?

How do I portray irrational anger in first person?

Is the internet in Madagascar faster than in UK?

Why does this London Underground poster from 1924 have a Star of David atop a Christmas tree?

Is there a better way to use C# dictionaries than TryGetValue?

What's the simplest way to calibrate a thermistor?

Why might one *not* want to use a capo?

Number of Fingers for a Math Oriented Race

Can I get a PhD for developing educational software?

Why is there no Disney logo in MCU movies?

Is the Amazon rainforest the "world's lungs"?

Did anybody find out it was Anakin who blew up the command center?

Why can't I identify major minor chords?



Gradle: Error: Program type already present: androidx.activity.R$attr


“Gradle Version 2.10 is required.” ErrorError : Program type already present: android.support.design.widget.CoordinatorLayout$BehaviorProgram type already present errorWhat does “Program type already present” mean?Program type already present : gradle build errorProgram type already present - ERRORGradle Build Error - Program type already presentGradle: Error: Program type already present: javax.inject.InjectGradle: program type already present






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















When adding



 implementation 
('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'



to my app/build.gradle file i get this error:
Error: Program type already present: androidx.activity.R$attr



What i did do:
1. gradlew androidDependencies
But i cannot find any duplicates



  1. Read: https://developer.android.com/studio/build/dependencies#duplicate_classes.


  2. Other stackoverflow answers suggesting excluding support library versions dont help me


repositories 
maven url 'https://maven.fabric.io/public'


configurations
all*.exclude group: 'com.google.guava', module: 'listenablefuture'


configurations.all exclude group: 'com.android.support', module: 'support-v13'

dependencies
def nav_version = "1.0.0"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'


testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:core-ktx:1.1.0'

implementation "com.vorlonsoft:androidrate:1.2.1"
implementation 'com.github.THEAccess:SuspendRx:1.0.10'
implementation 'com.github.THEAccess:privacydialog:0.1.0'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.yqritc:android-scalablevideoview:1.0.4'
implementation 'com.timqi.sectorprogressview:library:2.0.1'

implementation 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
implementation 'com.stepstone.apprating:app-rating:2.3.0'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.firebase:firebase-ads:16.0.1'
api ('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'




//Navigation
implementation "android.arch.navigation:navigation-fragment-ktx:$nav_version"
implementation "android.arch.navigation:navigation-ui-ktx:$nav_version"

implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
//Kodein
def kodein_version = "6.0.1"
implementation "org.kodein.di:kodein-di-generic-jvm:$kodein_version"
implementation "org.kodein.di:kodein-di-framework-android-x:$kodein_version"
implementation "org.kodein.di:kodein-di-conf-jvm:$kodein_version"

//Firebase
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-config:16.4.0'
implementation 'com.google.firebase:firebase-perf:16.2.4'
implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar')
transitive = true;

implementation 'androidx.cardview:cardview:1.0.0'



Please help me understanding where the dependencies have duplicates










share|improve this question
























  • have you found any solution for this?

    – snachmsm
    Jun 19 at 8:08

















1















When adding



 implementation 
('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'



to my app/build.gradle file i get this error:
Error: Program type already present: androidx.activity.R$attr



What i did do:
1. gradlew androidDependencies
But i cannot find any duplicates



  1. Read: https://developer.android.com/studio/build/dependencies#duplicate_classes.


  2. Other stackoverflow answers suggesting excluding support library versions dont help me


repositories 
maven url 'https://maven.fabric.io/public'


configurations
all*.exclude group: 'com.google.guava', module: 'listenablefuture'


configurations.all exclude group: 'com.android.support', module: 'support-v13'

dependencies
def nav_version = "1.0.0"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'


testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:core-ktx:1.1.0'

implementation "com.vorlonsoft:androidrate:1.2.1"
implementation 'com.github.THEAccess:SuspendRx:1.0.10'
implementation 'com.github.THEAccess:privacydialog:0.1.0'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.yqritc:android-scalablevideoview:1.0.4'
implementation 'com.timqi.sectorprogressview:library:2.0.1'

implementation 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
implementation 'com.stepstone.apprating:app-rating:2.3.0'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.firebase:firebase-ads:16.0.1'
api ('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'




//Navigation
implementation "android.arch.navigation:navigation-fragment-ktx:$nav_version"
implementation "android.arch.navigation:navigation-ui-ktx:$nav_version"

implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
//Kodein
def kodein_version = "6.0.1"
implementation "org.kodein.di:kodein-di-generic-jvm:$kodein_version"
implementation "org.kodein.di:kodein-di-framework-android-x:$kodein_version"
implementation "org.kodein.di:kodein-di-conf-jvm:$kodein_version"

//Firebase
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-config:16.4.0'
implementation 'com.google.firebase:firebase-perf:16.2.4'
implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar')
transitive = true;

implementation 'androidx.cardview:cardview:1.0.0'



Please help me understanding where the dependencies have duplicates










share|improve this question
























  • have you found any solution for this?

    – snachmsm
    Jun 19 at 8:08













1












1








1








When adding



 implementation 
('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'



to my app/build.gradle file i get this error:
Error: Program type already present: androidx.activity.R$attr



What i did do:
1. gradlew androidDependencies
But i cannot find any duplicates



  1. Read: https://developer.android.com/studio/build/dependencies#duplicate_classes.


  2. Other stackoverflow answers suggesting excluding support library versions dont help me


repositories 
maven url 'https://maven.fabric.io/public'


configurations
all*.exclude group: 'com.google.guava', module: 'listenablefuture'


configurations.all exclude group: 'com.android.support', module: 'support-v13'

dependencies
def nav_version = "1.0.0"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'


testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:core-ktx:1.1.0'

implementation "com.vorlonsoft:androidrate:1.2.1"
implementation 'com.github.THEAccess:SuspendRx:1.0.10'
implementation 'com.github.THEAccess:privacydialog:0.1.0'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.yqritc:android-scalablevideoview:1.0.4'
implementation 'com.timqi.sectorprogressview:library:2.0.1'

implementation 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
implementation 'com.stepstone.apprating:app-rating:2.3.0'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.firebase:firebase-ads:16.0.1'
api ('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'




//Navigation
implementation "android.arch.navigation:navigation-fragment-ktx:$nav_version"
implementation "android.arch.navigation:navigation-ui-ktx:$nav_version"

implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
//Kodein
def kodein_version = "6.0.1"
implementation "org.kodein.di:kodein-di-generic-jvm:$kodein_version"
implementation "org.kodein.di:kodein-di-framework-android-x:$kodein_version"
implementation "org.kodein.di:kodein-di-conf-jvm:$kodein_version"

//Firebase
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-config:16.4.0'
implementation 'com.google.firebase:firebase-perf:16.2.4'
implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar')
transitive = true;

implementation 'androidx.cardview:cardview:1.0.0'



Please help me understanding where the dependencies have duplicates










share|improve this question














When adding



 implementation 
('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'



to my app/build.gradle file i get this error:
Error: Program type already present: androidx.activity.R$attr



What i did do:
1. gradlew androidDependencies
But i cannot find any duplicates



  1. Read: https://developer.android.com/studio/build/dependencies#duplicate_classes.


  2. Other stackoverflow answers suggesting excluding support library versions dont help me


repositories 
maven url 'https://maven.fabric.io/public'


configurations
all*.exclude group: 'com.google.guava', module: 'listenablefuture'


configurations.all exclude group: 'com.android.support', module: 'support-v13'

dependencies
def nav_version = "1.0.0"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'


testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha02'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.1'
androidTestImplementation 'androidx.test:core-ktx:1.1.0'

implementation "com.vorlonsoft:androidrate:1.2.1"
implementation 'com.github.THEAccess:SuspendRx:1.0.10'
implementation 'com.github.THEAccess:privacydialog:0.1.0'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.yqritc:android-scalablevideoview:1.0.4'
implementation 'com.timqi.sectorprogressview:library:2.0.1'

implementation 'com.github.Angtrim:Android-Five-Stars-Library:v3.1'
implementation 'com.stepstone.apprating:app-rating:2.3.0'
implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.firebase:firebase-ads:16.0.1'
api ('com.google.android.ads.consent:consent-library:1.0.0')
exclude module: 'androidx.activity'




//Navigation
implementation "android.arch.navigation:navigation-fragment-ktx:$nav_version"
implementation "android.arch.navigation:navigation-ui-ktx:$nav_version"

implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
//Kodein
def kodein_version = "6.0.1"
implementation "org.kodein.di:kodein-di-generic-jvm:$kodein_version"
implementation "org.kodein.di:kodein-di-framework-android-x:$kodein_version"
implementation "org.kodein.di:kodein-di-conf-jvm:$kodein_version"

//Firebase
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-config:16.4.0'
implementation 'com.google.firebase:firebase-perf:16.2.4'
implementation 'com.google.firebase:firebase-firestore:18.1.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.firebase:firebase-inappmessaging-display:17.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar')
transitive = true;

implementation 'androidx.cardview:cardview:1.0.0'



Please help me understanding where the dependencies have duplicates







android gradle






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 21:09









YannickYannick

3101 gold badge2 silver badges12 bronze badges




3101 gold badge2 silver badges12 bronze badges















  • have you found any solution for this?

    – snachmsm
    Jun 19 at 8:08

















  • have you found any solution for this?

    – snachmsm
    Jun 19 at 8:08
















have you found any solution for this?

– snachmsm
Jun 19 at 8:08





have you found any solution for this?

– snachmsm
Jun 19 at 8:08












0






active

oldest

votes










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%2f55386489%2fgradle-error-program-type-already-present-androidx-activity-rattr%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















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%2f55386489%2fgradle-error-program-type-already-present-androidx-activity-rattr%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







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해