android - androidx中“设计”的依赖是什么?
问题描述
我正在使用导航抽屉,这没有错误
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
但是在androidx中更新后
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:design:1.1.0'
此代码不适用于导航抽屉。
我的问题是这种情况下的依赖是什么。请帮忙。
解决方案
图书馆'androidx.appcompat:design:x.x.x'
不存在。
使用材料组件库:
//Latest beta version
implementation 'com.google.android.material:material:1.1.0-beta01'
或者
//Latest but old stable version
implementation 'com.google.android.material:material:1.0.0'
依赖实现'androidx.appcompat:appcompat:1.1.0'
是正确的。