fat-aar-android icon indicating copy to clipboard operation
fat-aar-android copied to clipboard

Cannot Add Task

Open loymtshali opened this issue 3 years ago • 5 comments

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

loymtshali avatar Oct 07 '21 13:10 loymtshali

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

fataar {
    transitive = true
}

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

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

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

Heart-Beats avatar Mar 29 '22 06:03 Heart-Beats

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

Heart-Beats avatar Apr 01 '22 12:04 Heart-Beats

一样的问题

chu358177 avatar Apr 27 '22 10:04 chu358177

fataar {
    transitive = true
}

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

lzyang187 avatar Jun 30 '22 07:06 lzyang187

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'

RebornQ avatar Aug 10 '22 03:08 RebornQ