程序类型已存在:Ionic 上的 android.support.v4.os.ResultReceiver$MyResultReceiver
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver on Ionic
我正在使用 ionic 构建应用程序
我已经添加了 firebase 云消息,一切正常
但是今天,当我构建时显示错误。
- ionic cordova 平台 rm android
- 删除插件
- 清除缓存
- 删除包-lock.js
- npm 我
6 离子 cordova 平台添加 android
7 离子科尔多瓦准备
8 离子科尔多瓦构建 android
Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
37 actionable tasks: 7 executed, 30 up-to-date
D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
失败:构建失败,出现异常。
出了什么问题:
任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败。
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
获取更多帮助
18 秒内构建失败
/////*/platforms/android/gradlew:命令失败,退出代码为 1 错误输出:
D8:程序类型已经存在:android.support.v4.os.ResultReceiver$MyResultReceiver
失败:构建失败,出现异常。
- 出了什么问题:
任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败。
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
我遇到了同样的问题,发现是因为 firebase 和 googleplus 插件。终于找到了适合我的解决方案:
ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter
只需添加这些插件即可消除所有构建错误。
我正在使用 ionic 构建应用程序 我已经添加了 firebase 云消息,一切正常 但是今天,当我构建时显示错误。
- ionic cordova 平台 rm android
- 删除插件
- 清除缓存
- 删除包-lock.js
- npm 我 6 离子 cordova 平台添加 android 7 离子科尔多瓦准备 8 离子科尔多瓦构建 android
Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED 37 actionable tasks: 7 executed, 30 up-to-date D8: Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
失败:构建失败,出现异常。
出了什么问题: 任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败。
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
18 秒内构建失败 /////*/platforms/android/gradlew:命令失败,退出代码为 1 错误输出: D8:程序类型已经存在:android.support.v4.os.ResultReceiver$MyResultReceiver
失败:构建失败,出现异常。
- 出了什么问题:
任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”执行失败。
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver
我遇到了同样的问题,发现是因为 firebase 和 googleplus 插件。终于找到了适合我的解决方案:
ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter
只需添加这些插件即可消除所有构建错误。