|
|
## 3.1 导入SDK
|
|
|
将camerafilter2.4.0.aar、shortvideo2.4.0.aar添加到libs目录(没有目录的自行创建),在app的build.gradle文件下配置。
|
|
|
将camerafilter2.4.1.aar、shortvideo2.4.1.aar添加到libs目录(没有目录的自行创建),在app的build.gradle文件下配置。
|
|
|
```
|
|
|
android {
|
|
|
|
... | ... | @@ -18,8 +18,15 @@ android { |
|
|
|
|
|
//添加依赖
|
|
|
dependencies {
|
|
|
implementation(name:'shortvideo2.4.0', ext:'aar')
|
|
|
implementation(name:'camerafilter2.4.0', ext:'aar')
|
|
|
implementation(name:'shortvideo2.4.1', ext:'aar')
|
|
|
implementation(name:'camerafilter2.4.1', ext:'aar')
|
|
|
}
|
|
|
```
|
|
|
配置abiFilters。
|
|
|
```
|
|
|
//abiFilters配置不可少
|
|
|
ndk {
|
|
|
abiFilters 'armeabi-v7a'
|
|
|
}
|
|
|
```
|
|
|
|
... | ... | |