运行android Studio 报错“Error: Program type already present: cn.pda.serialport.SerialPort”
知道是第三方包冲突:
implementation files('libs/anreaderlib.jar')
implementation files('libs/zkandroidcore.jar')
anreaderlib.jar和zkandroidcore.jar都引入cn.pda.serialport.SerialPort导致冲突,不知如何排除改成这样
implementation files('libs/zkandroidcore.jar'){exclude group: 'cn.pda.serialport.SerialPort' }
报语法错误:
ERROR: Gradle DSL method not found: 'exclude()'
Possible causes:
The project 'seriesEquipment' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.3.1 and sync project,