ObsoleteLintCustomCheck предупреждение о линтах после обновления до WorkManager 2.3.4 - PullRequest
1 голос
/ 26 мая 2020

После обновления WorkManager с 2.2.0 до 2.3.4 я получаю новое предупреждение ObsoleteLintCustomCheck о ворсинах. Если я правильно понимаю предупреждающее сообщение, значит, они добавили новую проверку ворса, которая использует старую версию API? Google не показывает ничего полезного, связанного с WorkManagerIssueRegistry.

Кто-нибудь сталкивался с этой проблемой раньше или знает, как ее исправить?

В gradle:

implementation "androidx.work:work-runtime-ktx:2.3.4"
testImplementation "androidx.work:work-testing:2.3.4"
Lint found an issue registry (`androidx.work.lint.WorkManagerIssueRegistry`) which is older than 
the current API level; these checks may not work correctly. Recompile the checks against the 
latest version. Custom check API version is 3 (3.3), current lint API level is 6 (3.6+)

Lint can be extended with "custom checks": additional checks implemented by 
developers and libraries to for example enforce specific API usages required by a library or a 
company coding style guideline. The Lint APIs are not yet stable, so these checks may either 
cause a performance degradation, or stop working, or provide wrong results. This warning flags 
custom lint checks that are found to be using obsolete APIs and will need to be updated to run 
in the current lint environment. It may also flag issues found to be using a **newer** version 
of the API, meaning that you need to use a newer version of lint (or Android Studio or Gradle 
plugin etc) to work with these checks.

1 Ответ

0 голосов
/ 29 мая 2020

Вы можете проигнорировать это. Мы исправили это в WorkManager 2.4.x. Извините за путаницу.

...