I have a method called setImageTintList()
that requires min API to be 21. But, if I set my min API to 16 in gradle, the app still builds without any warning.
Although there is a red line saying:
setImageTintList() - Call requires API level 21 (current min is 16)
it does not show any warning, error or compile error.
How can I set the lint warning level in android studio such that it will error out and possibly prevent the build in cases like this?