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

Cannot Add Task #347

Open
loymtshali opened this issue Oct 7, 2021 · 5 comments
Open

Cannot Add Task #347

loymtshali opened this issue Oct 7, 2021 · 5 comments

Comments

@loymtshali
Copy link

When I try sync my Gradle I'm getting this error Cannot add task 'explodeAndroidx.coreCoreDebug' as a task with that name already exists.

I see that a similar issue was posted earlier this year but there aren't any replies or suggestions.

Can someone please help.

Build Environment

  • macOS Catalina
  • AGP 7.0.0 (I added AGP 7 support)
  • Gradle Version 7.0.2
  • Fat-aar Version: 1.3.6
@Heart-Beats
Copy link

Heart-Beats commented Mar 29, 2022

我也有同样的问题,加入:

fataar {
    transitive = true
}

后就会报此错误,我的环境:

  • windows 11
  • AGP 7.1.2
  • Gradle Version 7.2
  • Fat-aar Version: 1.3.8

目前没找到如何此问题的方案,希望可以解决告知一下此问题的解决方式

@Heart-Beats
Copy link

这么长时间过去了,大佬看到此问题了吗,若需要复现我这边可以提供环境

@chu358177
Copy link

一样的问题

@lzyang187
Copy link

lzyang187 commented Jun 30, 2022

fataar {
    transitive = true
}

打开依赖传递后,所有相同的依赖项都只能保留一个,我这个工程androidx.core:core的依赖有25个地方出现,一个一个exclude太麻烦了,而且不仅只有androidx.core:core,还有很多module。求一个比较好的解决方案吧!

@RebornQ
Copy link

RebornQ commented Aug 10, 2022

If it is androidx.appcompat and you don't mind downgrade the dependency, you can downgrade it to 1.2.0 to solve that. This problem starts from 1.3.0.

如果是 androidx.appcompat 依赖,不介意降级依赖的话,降级到 1.2.0 可以解决,1.3.0 开始就会有这个问题。

embed 'androidx.appcompat:appcompat:1.2.0'

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

5 participants