&燃气轮机;找不到com.android。支持:设计:30.0.3

&燃气轮机;找不到com.android。支持:设计:30.0.3,android,Android,我是一个初学者,遇到了我这个问题,实现了 设计不起作用 这是我的密码 安卓{ 编译DK30版 buildToolsVersion“30.0.3” } 依赖关系{ implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayou

我是一个初学者,遇到了我这个问题,实现了 设计不起作用

这是我的密码

安卓{ 编译DK30版 buildToolsVersion“30.0.3”

}

依赖关系{

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.material:material:1.3.0-alpha01'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'com.android.support:design:30.0.3'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

注意:随着Android 9.0(API级别28)的发布,有一个名为AndroidX的支持库的新版本,它是Jetpack的一部分。AndroidX库包含现有的支持库,还包括最新的Jetpack组件

您可以继续使用支持库。历史工件(版本为27及更早,打包为android.support.*)仍将在Google Maven上可用。但是,所有新的库开发都将在AndroidX库中进行

我们建议在所有新项目中使用AndroidX库。您还应该考虑将现有项目迁移到AndroidX上。

您不应该使用设计支持库,因为您已经在使用
androidx
。进一步的支持库现在正在运行

此库已被您已包含的Google材质库替换

implementation 'com.google.android.material:material:1.3.0-alpha01'

com.android.support:design
已弃用,最新版本为
28.0.0
。请参阅取代它的工件的答案。谢谢,但你们能告诉我如何在最后一个版本中使用Snackbar吗version@Y你可以找到一个完整的例子。。如果答案有用,请将其标记为已接受。
implementation 'com.android.support:design:30.0.3'
implementation 'com.google.android.material:material:1.3.0-alpha01'