Android Studio 3.0.1等级同步获取此com.android.builder.dexing.DexArchiveMergerException:无法合并dex错误

时间:2018-03-06 16:14:10

标签: android android-gradle android-studio-3.0 android-multidex

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

0 个答案:

没有答案