
Lint found one or more custom checks using its older Java API; these checks are still run in compatibility mode, but this causes duplicated parsing, and in the next version lint will no longer include this legacy mode. Make sure the following lint detectors are upgraded to the new API: butterknife.lint.InvalidR2UsageDetector
It's listed as priority 10/10.
This is fixed on master and will be released in the next version. Try 9.0.0-SNAPSHOT for now.
can overriding get current API method fix this @JakeWharton ? I'm currently developing a custom lint in Kotlin and getting the same error.
so I did:
override val api: Int
get() = CURRENT_API
import com.android.tools.lint.detector.api.CURRENT_API
Most helpful comment
This is fixed on master and will be released in the next version. Try 9.0.0-SNAPSHOT for now.