I'm trying to make a library in which I want a method to be used only if it is above a certain API level.
I want the type of error shown here under putStringSet()
method
I have used @TargetApi
annotation but no success. Developer is still able to use that method without error.
Can you also tell what this type of error is called (in putStringSet()
method)