1

Running lint on an Android project (using Bitrise) results in Unknown issue id "UseAppTint" [LintError]

module_build_shared.gradle:

    lintOptions {
        quiet false
        abortOnError true
        ignoreWarnings true
        disable 'UseAppTint' // Using `android:tint` on an ImageView is only a problem when API < 21 (our current minSDK is higher)
    }

This is an example of a lint error I'm trying to disable:

ProjectName/modulename/src/main/res/layout/my_layout.xml:60: Error: Must use app:tint instead of android:tint [UseAppTint]
android:tint="?attr/colorOnSurface"```
Patrick Kuijpers
  • 362
  • 1
  • 3
  • 8

1 Answers1

1

There were some issues with tint on api < 21.

You could change that ImageView to AppCompatImageView and use app:tint in the xml and you'll get rid of that warning.

jeprubio
  • 17,312
  • 5
  • 45
  • 56