如何解决Flutter中的“程序类型已存在:android.support.v4.os.ResultReceiver $ MyResultReceiver”错误

时间:2019-03-30 15:14:59

标签: android gradle flutter

当我尝试ro run:flutter run

时,我在android build中遇到此错误

D8:程序类型已存在:android.support.v4.os.ResultReceiver $ MyResultReceiver

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败。
      

    com.android.builder.dexing.DexArchiveMergerException:合并dex归档文件时出错:/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/2.jar,/ Users / rauleburro /Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/3.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/4.jar, /Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/5.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/ 6.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 7.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 8.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 9.jar,/ Users / rauleburro / Develop / Bel lbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 10.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 11.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 12.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 13.jar ,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/14.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug /15.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/16.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms /dexBuilder/debug/17.jar、/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/18.jar、/Users/rauleburro/Develop/Bell bird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 19.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 20.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 21.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 22.jar ,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/23.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug /24.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/25.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms /dexBuilder/debug/26.jar、/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/27.jar、/Users/rauleburro/Develop/Bellb ird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 28.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 29.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 30.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 31.jar ,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/32.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug /33.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/34.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms /dexBuilder/debug/35.jar、/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/36.jar、/Users/rauleburro/Develop/Bellbi rd / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 37.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 38.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 39.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 40.jar ,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/41.jar,/ Users / rauleburro / Develop / Bellbird / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug /42.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/43.jar,/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms /dexBuilder/debug/44.jar、/Users/rauleburro/Develop/Bellbird/aseguradora_app/build/app/intermediates/transforms/dexBuilder/debug/45.jar、/Users/rauleburro/Develop/Bellbir d / aseguradora_app / build / app / intermediates / transforms / dexBuilder / debug / 46.jar   在https://developer.android.com/studio/build/dependencies#duplicate_classes了解如何解决该问题。   程序类型已经存在:android.support.v4.os.ResultReceiver $ MyResultReceiver

在7秒内失败

0 个答案:

没有答案