--core-library error with build tools android (Eclipse)[solved with android studio]
Asked Answered
P

1

0

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://mcmap.net/q/622907/-android-core-library-error 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 ?

Panocha answered 20/2, 2015 at 5:32 Comment(2)
Hello, surprisingly the solution --core-library doesn't work with eclipse but does work with android studio with gradle. thank You,Panocha
You can close you own question by putting the solution in the answer box provided. Editing the question to include the word "solved" still causes the question to remain in the "unsolved" pool.Threadgill
P
0

So finally , I moved to android studio as no luck building it with eclipse. And it runs great.

Panocha answered 27/4, 2015 at 5:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.