什么取代了 AndroidX 中的 appcompat-v7

Use*_*643 7 android android-appcompat android-support-library material-components-android androidx

在将我的几个旧项目迁移到 AndroidX 之后,我的三个依赖项似乎已被弃用:

   implementation 'com.android.support:appcompat-v7:28.0.0'
   implementation 'com.android.support:design:28.0.0'
   implementation 'com.android.support:cardview-v7:28.0.0'
Run Code Online (Sandbox Code Playgroud)

我一直无法找到这些依赖项的替代品。

AndroidX 是否有这些依赖项的等价物?

Gab*_*tti 20

按顺序使用:

implementation 'androidx.appcompat:appcompat:1.0.2'   
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
Run Code Online (Sandbox Code Playgroud)

如果您想使用alpha/beta版本:

implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'com.google.android.material:material:1.1.0-alpha09'
Run Code Online (Sandbox Code Playgroud)

有关发布的更多信息: