【发布时间】:2020-03-10 10:03:01
【问题描述】:
现在 Android 强制开发人员迁移到 AndroidX,所以我收到了这个 lint 错误。
Caused by: org.gradle.api.GradleException: Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
build.gradle:31: Error: so we recommend that you migrate to AndroidX libraries when using Android Q and moving forward. The IDE can help with this: Refactor > Migrate to AndroidX... [GradleCompatible]
implementation 'com.android.support:design:28.0.0'
所以我想绕过此检查而不继续处理错误。
我知道我可以使用 lint 禁用特定规则,但我找不到能够让我克服这个问题的规则(迁移到 AndroidX)。
谢谢。
【问题讨论】:
标签: android gradle migration androidx lint