Open SagarShedge25 opened 1 year ago
I encountered the same issue with transitive option enabled. See #204
我的依赖里面用了DataBinding导致lifecycle冲突,类似的androidX的包冲突了,排查同一个模块下带有androidX依赖的其他包,然后去掉这些依赖。这个模块的aar就能打成功了。
dependencies {
implementation("androidx.databinding:databinding-adapters:7.1.2")
implementation("androidx.databinding:databinding-ktx:7.1.2"){
exclude(group: 'org.jetbrains.kotlin')
exclude(group: 'androidx.lifecycle')
}
implementation("androidx.databinding:databinding-runtime:7.1.2") {
exclude(group: 'androidx.lifecycle')
}
embed("androidx.appcompat:appcompat:${versions.appcompat}")
}
如果使用DataBinding的话,没法使用以下的方法,只能单独添加依赖,如上代码
buildFeatures{
dataBinding true
}
我也遇到这个错误,请问找到解决办法了吗?
Describe the issue I am, trying to build an aar lib but facing below issue, Does anybody has faced similar issue or help me if you aware about it. Thanks
Exception is: A problem occurred configuring project ':prlib'.
Try:
Build Environment