Android Studio 3.0.1 IDE 我试图在我的项目中添加aar。那个时候,我收到这个错误.. 错误:任务执行失败':app:transformResourcesWithMergeJavaResForDebug'。在OS独立路径中发现多个文件' org / apache / xml / security / resource / xmlsecurity_de.properties' 我再次修复了build.gradle android {}文件中的packageOptions的帮助。
packagingOptions { 排除' org / apache / xml / security / resource / log4j.properties' exclude' org / apache / xml / security / resource / schema / xenc-schema.xsd' 排除' org / apache / xml / security / resource / config.dtd' exclude' org / apache / xml / security / resource / schema / xmldsig-core-schema.xsd' 排除' org / apache / xml / security / resource / schema / xenc-schema.rng' exclude' org / apache / xml / security / resource / schema / xmldsig-core-schema.dtd' 排除' org / apache / xml / security / resource / schema / etsi.xsd' 排除' org / apache / xml / security / resource / xmlsecurity_en.properties' 排除' org / apache / xml / security / resource / xmlsecurity_de.properties' exclude' org / apache / xml / security / resource / schema / xmldsig-core-schema.rng' 排除' org / apache / xml / security / resource / config.xml' // pickFirst' org / apache / xml / security / resource * // **' //添加这个 pickFirst' signer.crt' }
But, again, am getting this exception.
错误:任务执行失败':app:transformDexArchiveWithExternalLibsDexMergerForDebug' .java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex
I have tried clean and rebuild it. but, unable to use. any help on this situation.
Thanks Advance