简体   繁体   中英

Xerces for Android

I'm getting this exception:

java.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found

I have tried importing the jar files from maven but I'm getting this exception:

Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\JOHN\AndroidStudioProjects\AndroidDevelopment\MyApp\app\libs\xercesImpl-2.11.0.jar

Does anyone know what I should do?

不要直接导入jar文件,而是尝试将以下依赖项添加到app/build.gradle

implementation 'org.eclipse.birt.runtime.3_7_1:org.apache.xerces:2.9.0'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM