Butterknife: Obsolete custom lint check

Created on 10 Nov 2017  路  2Comments  路  Source: JakeWharton/butterknife

screenshot from 2017-11-10 13-10-22

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.

Most helpful comment

This is fixed on master and will be released in the next version. Try 9.0.0-SNAPSHOT for now.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

engr-umar-qureshi picture engr-umar-qureshi  路  3Comments

ernestp picture ernestp  路  3Comments

mturki picture mturki  路  3Comments

anthony3444 picture anthony3444  路  3Comments

alejandro-pnz picture alejandro-pnz  路  3Comments