Install Modbus4Android via Gradle
masterTo use Modbus4Android, add the JitPack repository to your allprojects block and include the dependency in your dependencies block. It is recommended to exclude commons-logging to avoid conflicts.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation('com.github.licheedev:Modbus4Android:3.0.0') {
// 解决"commons-logging"冲突问题
exclude group: 'commons-logging', module: 'commons-logging'
}
}