This doesn’t actually have anything to do with the Android plugin or Android itself. This is just an option for the Java compiler to provide more details about which classes/methods you’re using that are marked as
@Deprecated in code that is not also marked as
@Deprecated. If you’ve marked something
@Deprecated in your code that you plan to remove usage of soon, this would be expected. If it’s in a library, you would generally want to try to reduce your dependencies on the deprecated library code as that will usually prevent you from upgrading to the next major version.
If you’re interested in these details, you can set a flag on all the
options.deprecation = true
or if you rather explicitly set the compiler argument, you can do so as well:
options.compilerArgs += ['-Xlint:deprecation']
Otherwise, you can just ignore the warning until you’re ready to do something about it.