You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Android
Install Android SDK
Copy page
Download PDF
Install Android SDK
This article provides the download address and installation method for the TOS Android SDK.​
Prerequisites​
  • Before installing the TOS Android SDK, ensure that JDK version 1.8 or later is installed.​
  • Please ensure that your Android application targets API level 21 (Android 5.0) or higher.​
SDK Download Link and Revision History​
Installation Method​
Integration via Gradle​
Configure the build.gradle file as follows, and add dependencies in dependencies.​
​
implementation 'com.volcengine:ve-tos-android-sdk:2.6.0'​
​
Open the AndroidManifest.xml file and insert the following code snippet to configure the permissions required by the SDK.​
​
<uses-permission android:name="android.permission.INTERNET" /> ​
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> ​
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />​
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> ​
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />​
​
Precautions​
  • The minimum supported minSDK version for the TOS Android SDK is API 21 (Android 5.0).​
  • For Android applications with a minSDK version of API 21 to 26, the following additional settings are required to ensure proper operation.​
Relevant Dependencies​
  • Gradle version 6.1.1 or later.​
  • Android Gradle Plugin version 4.0.0 or higher.​
Add the following code to the build.gradle file of your Android application module (typically located in the app directory):​
​
android {​
compileOptions {​
coreLibraryDesugaringEnabled true​
​
sourceCompatibility JavaVersion.VERSION_1_8​
targetCompatibility JavaVersion.VERSION_1_8​
}​
}​
​
dependencies {​
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'​
}​
​
For more details, see Using Java 8 language features and API.​
Last updated: 2025.09.25 14:23:26