|
## 3.1 导入SDK
|
|
## 3.1 导入SDK
|
|
将camerafilter2.4.1.aar、shortvideo2.4.1.aar添加到libs目录(没有目录的自行创建),在app的build.gradle文件下配置。
|
|
项目根目录build.gradle添加
|
|
|
|
|
|
|
|
```
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
google()
|
|
|
|
maven {url 'http://nexus-app.bokecc.com/repository/sdk-group/'}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
module的build.gradle添加
|
|
|
|
|
|
|
|
|
|
```
|
|
```
|
|
android {
|
|
android {
|
|
|
|
|
... | @@ -7,22 +21,34 @@ android { |
... | @@ -7,22 +21,34 @@ android { |
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
//引用SDK配置
|
|
}
|
|
|
|
|
|
|
|
//添加依赖
|
|
|
|
dependencies {
|
|
|
|
implementation('com.bokecc:ShortVideoLib:1.0.3')
|
|
|
|
implementation('com.bokecc:CameraFilterLib:2.3.0')
|
|
|
|
implementation 'com.bokecc:hdplayer:1.1.0_lite'
|
|
|
|
//implementation(name:'shortvideo2.4.1', ext:'aar')
|
|
|
|
//implementation(name:'camerafilter2.4.1', ext:'aar')
|
|
|
|
}
|
|
|
|
```
|
|
|
|
注:如果依旧想本地引入
|
|
|
|
|
|
|
|
将camerafilter2.4.1.aar、shortvideo2.4.1.aar添加到libs目录(没有目录的自行创建),在app的build.gradle文件下配置。
|
|
|
|
|
|
|
|
```
|
|
|
|
//引用SDK配置
|
|
repositories {
|
|
repositories {
|
|
flatDir {
|
|
flatDir {
|
|
dirs 'libs'
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//添加依赖
|
|
|
|
dependencies {
|
|
|
|
implementation(name:'shortvideo2.4.1', ext:'aar')
|
|
|
|
implementation(name:'camerafilter2.4.1', ext:'aar')
|
|
|
|
}
|
|
|
|
```
|
|
|
|
配置abiFilters。
|
|
配置abiFilters。
|
|
|
|
|
|
```
|
|
```
|
|
//abiFilters配置不可少
|
|
//abiFilters配置不可少
|
|
ndk {
|
|
ndk {
|
... | | ... | |