> com.android.support.constraint:constraint-layout
> androidx.constraintlayout:constraintlayout
这两者之间是否存在差异或哪些建议更可取?
编辑
谷歌正在停止对com.android.support的支持,并提示用户迁移到新的androidx等价物.
Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.
You can continue to use the support library. Historical artifacts (those versioned 27 and earlier,and packaged as android.support.*) will remain available on Google Maven. However,all new library development will occur in the AndroidX library.
We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.
这是官方的Migration guide和相应的库等价物.