问题
I am trying to build an apk with xmlParserAPIs-2.6.2.jar
using eclipse without Maven. But unfortunately it gives following error.
trouble processing "javax/xml/parsers/DocumentBuilder.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
when not building a core library.
look at this image for error - Image
I follwed https://stackoverflow.com/a/11090774/1602333 and put this
exec java $javaOpts -jar "$jarpath" --core-library "$@"
Dx File Image
in my build tools (21.1.2) dx file. But with no luck , error still remains.I have only 1 build tools (21.1.2). Any help ?
回答1:
So finally , I moved to android studio as no luck building it with eclipse. And it runs great.
来源:https://stackoverflow.com/questions/28622254/core-library-error-with-build-tools-android-eclipsesolved-with-android-stud