集成
- 解压sdk压缩包
1、首先将提供的sdk压缩包解压,将其中的 SIMSDK-1.0.1.aar 文件放到项目根目录下的 repositories 文件夹下,没有repositories文件夹需要先创建。
2、然后将其中的 com 文件夹及其子文件拷贝到 C:\Users\Administrator.m2\repository\ 文件夹下,其中Administrator是本地用户名。 - 导入依赖库
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://maven.aliyun.com/repository/jcenter/" }
maven { url "https://maven.aliyun.com/repository/google/" }
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
maven { url "https://dl.bintray.com/cjt/maven" }
google()
flatDir {
dirs 'repositories'
}
maven { url "D:\\asworkspace\\my\\MyApplication\\repo"}
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
maven {
url 'https://dl.google.com/dl/android/maven2/'
name 'Google'
}
maven { url 'https://developer.huawei.com/repo/' }
maven { url "https://mvn.getui.com/nexus/content/repositories/releases/" }
mavenLocal()
}
}
AndroidStudio build.gradle中的dependencies中添加
android {
...
configurations {
cleanedAnnotations
implementation.exclude group: 'com.intellij', module: 'annotations'
}
...
}
dependencies {
...
implementation 'com.oa8000.htim:main:1.0.1'
implementation(name: 'SIMSDK-1.0.1', ext: 'aar')
}