Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 693 Bytes

install.md

File metadata and controls

28 lines (25 loc) · 693 Bytes

安装

编辑Build.gradle文件并添加以下依赖项。

dependencies {
    implementation 'cn.shanyaliux.serialport:serialport:4.2.0'
}

如果你需要使用4.1.6及其以下版本,则按如下操作:

  1. 添加 JitPack 仓库 将 JitPack 存储库添加到您的构建文件中
     allprojects {
         repositories {
             ...
             maven { url 'https://jitpack.io' }
         }
     }
  2. 添加依赖
    dependencies {
        implementation 'com.gitee.Shanya:SerialPortSample:4.1.6'        //国内仓库
        implementation 'com.github.Shanyaliux:SerialPortSample:4.1.6'   //国外仓库
    }