I’m developing an Android application and want to use a jar file. I’ve added it as a library and the gradle sync works fine, I was able to successfully import and use classes from the jar. However, when I try running the application gradle it gives me this error:
trouble processing "javax/xml/stream/EventFilter.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
The javax.sml.stream package already exists natively in Java and I believe that this is why gradle is having issues with compiling. Alternatively, if I could suppress this warning that may also work (even if its ill advised) because I made a simple test program using the jar in eclipse and it worked perfectly.