edit-icon download-icon


Last Updated: Jan 07, 2019


This article describes how to install and use the OSS Android SDK. This document assumes that you have already activated the Alibaba Cloud OSS service and created an AccessKeyID and an AccessKeySecret. In the document, ID refers to the AccessKeyID and KEY indicates the AccessKeySecret. If you have not yet activated or do not know about the OSS service, log on to the OSS product page for more help.

Environment requirements

  • Android 2.3 or later
  • You must have registered an Alibaba Cloud account with the OSS activated.

Download the SDK

Compile the JAR package from the source code

You can run the gradle command for packaging after cloning the project source code:

  1. # Clone the project
  2. $ git clone https://github.com/aliyun/aliyun-oss-android-sdk.git
  3. # Enter the directory
  4. $ cd aliyun-oss-android-sdk/oss-android-sdk/
  5. # Run the packaging script. JDK 1.7 is required
  6. $ ./gradlew releaseJar
  7. # Enter the directory generated after packaging and the JAR package will be generated in this directory
  8. $ cd build/libs && ls
Thank you! We've received your feedback.