更新时间:2023-11-16 18:54:52
我发现了这个问题,这是一个错误,我向 Google ( b.android.com ) &他们回答了
I find the problem, it is a bug and I reported it to Google ( b.android.com ) & they answered
是的,我们知道这个问题,它将在下一个 alpha 版本中修复.这是:问题链接
Yep, we are aware of this issue, it will be fixed in the next alpha release. this is the : issue link
.
那么如何解决:我在 build.gradle (Module) 中更新到 alpha3 版本的库时遇到了这个问题:
So how to solve it: I faced the problem when updated to alpha3 version of library in build.gradle (Module) :
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
只需将其降级到较低版本即可:
Just downgrade it to lower version:
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'
现在好了.
问题是constraintlayout:2.0.0-alpha3库和attrs.xml在编译时合并的冲突!
The problem was the conflict between constraintlayout:2.0.0-alpha3 library and attrs.xml merging on compile time!
而对您而言,这可能只是其他一些库之间的冲突(只需检查上次更新的库)
and for you it might be just conflicts between some other libraries ( just check last updated libraries )