当我包含jaxp.jar时,我收到以下错误 -
trouble processing "javax/xml/XMLConstants.class":
[2009-05-08 16:53:18 - TestProject]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then …Run Code Online (Sandbox Code Playgroud) 我正在尝试根据 Android 设备上的 XSD 验证 XML 文件。
我用谷歌搜索了很多,找到了一些解决方案,例如xerces-for-android。在堆栈溢出中我发现了一些像这样的页面,建议避免javax.xml。验证并为此目的使用 Xerces。
我在不同的地方进行了测试Android APIs(17, 20,25),但不幸的是我没有取得任何成功。
您能帮助我并建议一种替代方法吗?