我想在 androidx 29 版本(最新版本)中导入设计库

I want to import design library in androidx 29 version(latest version)

下图澄清了我的问题。我曾多次尝试在 android studio 最新版本 29 (android x) 中导入设计库,但库不起作用 请告诉我 androidx 29 的设计库。

图书馆androidx.design:design:1.0.0不存在
你必须使用Material Components library

Material Components for Android is a drop-in replacement for Android's Design Support Library.

在您的 build.gradle 中添加其中一项:

implementation 'com.google.android.material:material:1.1.0-beta01'  //beta
implementation 'com.google.android.material:material:1.0.0'  //stable

您可以使用:-

在 androidx 中实现 'com.google.android.material:material:1.0.0' 库进行设计。