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

自闭症网瘾萝莉.ら 提交于 2019-12-12 05:29:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!