接收一个外包项目~拿别人的代码项目导入到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