I have a Android Gradle build that gives the following warning for every build flavour.
AGPBI: {"kind":"warning","text":"The following library types, prefixed by java., are present both as library and non library classes: java.lang.SafeVarargs. Library classes will be ignored.","sources":[{}],"tool":"D8"}
The following library types, prefixed by java., are present both as library and non library classes: java.lang.SafeVarargs. Library classes will be ignored.
I can’t find java.lang.SafeVarargs
in any of the library dependencies. So I don’t understand what is being complained about.
The build and app work fine, but the warning is clogging up the build and I am concerned that I will miss a real warning. So I would like to know how to either
- Resolve the issue causing the warning
- Hide the warning