I’m on the section Suppressing Lint compatibility errors. I’ve used the @TargetApi(11) annotation and I’m still getting an error and can’t run. The error says:
Multiple markers at this line
- The attribute value is undefined for the annotation type TargetApi
- TargetApi cannot be resolved to a type
There is no error of the if Build.VERSION.SDK_INT statement anymore though.