fat-aar-android
fat-aar-android copied to clipboard
Cannot Add Task
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
我也有同样的问题,加入:
fataar {
transitive = true
}
后就会报此错误,我的环境:
- windows 11
- AGP 7.1.2
- Gradle Version 7.2
- Fat-aar Version: 1.3.8
目前没找到如何此问题的方案,希望可以解决告知一下此问题的解决方式
这么长时间过去了,大佬看到此问题了吗,若需要复现我这边可以提供环境
一样的问题
fataar {
transitive = true
}
打开依赖传递后,所有相同的依赖项都只能保留一个,我这个工程androidx.core:core的依赖有25个地方出现,一个一个exclude太麻烦了,而且不仅只有androidx.core:core,还有很多module。求一个比较好的解决方案吧!
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'