The upload SDKs are compatible with all Android versions. We recommend that you deploy an upload SDK in Android 2.3 or later.
We recommend that you use Android Studio as the development tool. This document is based on the Android Studio development environment.
- Importing the following two JAR packages:
- VODUpload Android SDK. For more information about the download address, see SDK download.
- OSS Android SDK. For more information about the SDK and download address, see OSS Android SDK. After the SDKs are downloaded, perform the following steps (the procedure is applicable for both Android Studio and Eclipse):
Decompress the SDKs to obtain the following JAR packages in the libs directory: aliyun-vod-core-android-sdk-xxx.jar, aliyun-vod-upload-android-sdk-xxx.jar, gson-xxx.jar, jsr305-xxx.jar, okhttp-xxx.jar, okio-xxx.jar, and oss-android-sdk-xxx.jar. Import these JAR packages to the libs directory of your project.
You can also import OSS Android SDK through JCenter. In this case, you do not need to import the okhttp-xxx.jar, okio-xxx.jar, and oss-android-sdk-xxx.jar packages.