gpt4 book ai didi

java - 如何修复错误将字节码转换为 dex 原因 :com. android.dex.DexException :Multiple dex files define Lorg/apache/http/conn/ssl/AbstractVerifier?

转载 作者:行者123 更新时间:2023-12-03 06:34:57 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Unable to execute dex: Multiple dex files define

(31 个回答)


4年前关闭。




我更新了 android studio 和构建工具。

我遇到了这样的错误:

错误:将字节码转换为 dex 时出错:
原因:com.android.dex.DexException:多个dex文件定义了Lorg/apache/http/conn/ssl/AbstractVerifier;

Error:com.android.dex.DexException: Multiple dex files define Lorg/apache/http/conn/ssl/AbstractVerifier;
Error: at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:661)
Error: at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:616)
Error: at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:598)
Error: at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
Error: at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
Error: at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:61)
Error: at com.android.builder.dexing.DexArchiveMergerCallable.call(DexArchiveMergerCallable.java:36)
Error: at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
Error: at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
Error: at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
Error: at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
Error: at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Error:Execution failed for task ':app:transformDexArchiveWithDexMergerForDevelopmentDebug'.

com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Lorg/apache/http/conn/ssl/AbstractVerifier;

最佳答案

当您的应用及其引用的库超过 65,536 个方法时,您会遇到构建错误,表明您的应用已达到 Android 构建架构的限制
,检查这个link

关于java - 如何修复错误将字节码转换为 dex 原因 :com. android.dex.DexException :Multiple dex files define Lorg/apache/http/conn/ssl/AbstractVerifier?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47180497/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com