各SDK版本
implementation 'com.aliyun.video.android:svideosnap:6.0.0'//基础版短视频SDK必须依赖。
implementation 'com.aliyun.video.android:core:1.2.2' //核心库必须依赖。
//AlivcFFmpeg必须依赖,且版本需要在4.3.0及以上,在以下两个版本中选择一个版本进行依赖。
// implementation 'com.aliyun.video.android:AlivcFFmpeg:4.3.6.0-part' // 短视频SDK专用,包size较小。
implementation 'com.aliyun.video.android:AlivcFFmpeg:4.3.6' //短视频SDK与播放器SDK共用。两个SDK同时接入时,请用该版本。
implementation 'com.aliyun.video.android:upload:1.6.6'// 上传库,如不需要上传可不依赖。
implementation 'com.google.code.gson:gson:2.8.0'//第三方依赖库。
implementation 'com.squareup.okhttp3:okhttp:3.2.0'//第三方依赖库。
implementation 'com.aliyun.dpa:oss-android-sdk:+'//短视频上传需要依赖上传SDK及OSS,如果不需要上传可不依赖
implementation 'com.aliyun.sdk.android:AliyunPlayer:6.7.0-part' //播放器sdk
出现着冲突的类
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.aliyun.common.crash.AlivcExceptionHandler found in modules jetified-AliyunPlayer-6.7.0-part-runtime (com.aliyun.sdk.android:AliyunPlayer:6.7.0-part) and jetified-svideosnap-6.0.0-runtime (com.aliyun.video.android:svideosnap:6.0.0)
Duplicate class com.aliyun.common.network.AlivcHttp found in modules jetified-AliyunPlayer-6.7.0-part-runtime (com.aliyun.sdk.android:AliyunPlayer:6.7.0-part) and jetified-svideosnap-6.0.0-runtime (com.aliyun.video.android:svideosnap:6.0.0)
Duplicate class com.aliyun.common.network.AlivcHttpRequest found in modules jetified-AliyunPlayer-6.7.0-part-runtime (com.aliyun.sdk.android:AliyunPlayer:6.7.0-part) and jetified-svideosnap-6.0.0-runtime (com.aliyun.video.android:svideosnap:6.0.0)
Duplicate class com.aliyun.common.network.AlivcHttpResponse found in modules jetified-AliyunPlayer-6.7.0-part-runtime (com.aliyun.sdk.android:AliyunPlayer:6.7.0-part) and jetified-svideosnap-6.0.0-runtime (com.aliyun.video.android:svideosnap:6.0.0)