- Last edited 10 months ago ago
How to build and install an SDK for Android
This article explains how to integrate the custom Android™ SDK for Android Studio.
One of the following environments must be installed:
- Distribution Package to generate a custom SDK to Android Studio.
- Developer Package to install an existing SDK to Android Studio.
Android Studio must be installed.
Information about Android API Levels is available in the Android SDK page.
For Developer Package users go directly to section Install SDK in Android Studio.
2 Build SDK for distribution
2.1 Set environment
The Android™ SDK has to be generated in the eng build environment, select the right case when using the
2.2 SDK for Linux®
Execute the following build commands to generate the SDK
PC $> make sdk
The result is in the path
2.3 SDK for Windows®
For Windows®, a specific Ubuntu® package needs to be installed to build the Android™ SDK for Windows®, add the unix2dos command:
PC $> sudo apt-get install tofrodos
Execute the following build commands to generate the SDK:
PC $> make win_sdk
The result is in path
3 Install SDK in Android Studio
The information below applies to both Linux® Ubuntu® and Windows® environments. (It is assumed that Android Studio is already installed.)
- Open Android Studio
- Open Settings in the File Menu
- In the Settings pop-up select Appearance & Behavior --> System Settings --> Android SDK
- Check the path of the SDK as highlighted in Red in the picture below.
- Check for the correct SDK API selected, as highlighted in Blue in the picture below.
- Copy the
android.jarfile provided with the developer package or the custom version with the distribution, to the Android Studio SDK path :
- Restart Android Studio
- To check for new API availability in Android Studio, search for new Class/Symbol through the Navigate menu.