I added a new API to my custom android OS, and followed these steps to create the SDK:
- . build/envsetup.sh
- lunch sdk-eng
- make -j(thread num) update-api
- make -j(thread num) sdk
- The SDK is located under /out/host/linux-x86/sdk/sdk/
Then configured Android Studio to use the new SDK:
- Open Android Studio's Preferences --> Android SDK
- Edit the Android SDK Location with the new SDK path.
Result: When I'm trying to build the project, the build process stuck with a message:
AAPT process not ready to receive commands
In the meanwhile I found a workaround to use the custom android.jar (in answers)