Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Task already exists error on transitive true #204

Closed
erksch opened this issue Oct 13, 2020 · 1 comment
Closed

Task already exists error on transitive true #204

erksch opened this issue Oct 13, 2020 · 1 comment

Comments

@erksch
Copy link

erksch commented Oct 13, 2020

Hey there!

Thank you for this aaaaaawesome library!

However, when using configurations.embed.transitive=true, I am getting the following error:

Cannot add task 'explodeAndroidx.appcompatAppcompatDebug' as a task with that name already exists

I saw that you already fixed a similar issue, maybe this can be fixed, too.

I am using the latest version, latest gradle plugin and version.

Thank you very much!

@kezong
Copy link
Owner

kezong commented Oct 16, 2020

This is usually due to dependency on multiple versions of the Android x library.
It is not recommended to embed the Android x library.
By the way you can try like this:

embed('xxx:1.11.0') {
    exclude(group:'androidx.appcompat')
}

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

No branches or pull requests

2 participants