z879381359
z879381359
2018-08-28 05:31

求助各位大神,导入别人的项目报DexArchiveMergerException错误和(图)

5
  • android-studio
  • android

接收一个外包项目~拿别人的代码项目导入到android studio Rebuild project的时候报如下错误~弄了老半天~整不出答案~希望各位大神帮忙指点迷津。谢谢

图片说明

项目导入之后没有任何问题,但是rebuild project的时候报以下错误(如图所示)
图片说明

Program type already present: android_serialport_api.SerialPort
Message{kind=ERROR, text=Program type already present: android_serialport_api.SerialPort, sources=[Unknown source file], tool name=Optional.of(D8)}

图片说明
Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\ZYP\GDFace_ZY\app\build\intermediates\transforms\dexBuilder\debug\30, D:\ZYP\GDFace_ZY\app\build\intermediates\transforms\externalLibsDexMerger\debug\0, D:\ZYP\GDFace_ZY\app\build\intermediates\transforms\dexBuilder\debug\27.jar, D:\ZYP\GDFace_ZY\app\build\intermediates\transforms\dexBuilder\debug\28.jar, D:\ZYP\GDFace_ZY\app\build\intermediates\transforms\dexBuilder\debug\29.jar
图片说明
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
图片说明

Caused by: com.android.tools.r8.utils.AbortException

图片说明

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答