android - 使用或覆盖已弃用的 API android.support.design.widget.NavigationView
问题描述
我有导航视图的问题。我没有改变任何东西,也不知道为什么这个错误现在出现在 build.gradle 中,我已经编译了 'com.android.support:design:26.1.0'。
我的 build.gradle
android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'com.damageapp'
minSdkVersion 22
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'com.android.support:support-v4:26.1.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
annotationProcessor 'org.projectlombok:lombok:1.16.20'
compile 'org.projectlombok:lombok:1.16.20'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.1.3'
compile 'org.springframework.android:spring-android-rest-template:2.0.0.M3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.10'
compile 'com.fasterxml.jackson.core:jackson-core:2.8.10'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.8.0'
compile 'com.android.support:design:26.1.0'
testCompile 'junit:junit:4.12'
compile project(':BarcodeScannerLibrary')
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
}
我不知道我该如何解决。
解决方案
推荐阅读
- python - 在 Python 中将哈希摘要更改为大端
- asp.net - 在 Windows 更新安装了与 PrintNightmare 相关的补丁后,Crystal Reports PrintToPrinter 已停止工作
- php - 访问另一个文件的全局变量和静态类属性,而不将它们带入范围
- python - 使用 re.findall 避免始终为空的正则表达式组
- reactjs - React.js 中的条件 &&
- javascript - 递归函数 javaScript
- sql - 忽略 SQL 中的空绑定变量
- flyway - 有没有办法在使用 flyway cli 运行实际迁移之前检查是否有挂起的迁移?
- reactjs - 如果路径在 Route React 中是动态的,如何重定向到“/”
- api - 如何使用 reitit clojure 定义可选的查询参数