Tar*_*lam 1 android android-appcompat android-support-library material-components-android androidx
我正在使用导航抽屉,这没有错误
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
Run Code Online (Sandbox Code Playgroud)
但是在androidx中更新后
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:design:1.1.0'
Run Code Online (Sandbox Code Playgroud)
此代码不适用于导航抽屉。
我的问题是这种情况下的依赖是什么。请帮忙。
图书馆'androidx.appcompat:design:x.x.x' 不存在。
使用材料组件库:
//Latest beta version
implementation 'com.google.android.material:material:1.1.0-beta01'
Run Code Online (Sandbox Code Playgroud)
或者
//Latest but old stable version
implementation 'com.google.android.material:material:1.0.0'
Run Code Online (Sandbox Code Playgroud)
依赖实现'androidx.appcompat:appcompat:1.1.0'是正确的。
| 归档时间: |
|
| 查看次数: |
2157 次 |
| 最近记录: |