Yahavw
Yahavw

Reputation: 129

How to use custom android SDK in Android Studio?

I added a new API to my custom android OS, and followed these steps to create the SDK:

Then configured Android Studio to use the new SDK:

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)

Upvotes: 6

Views: 4529

Answers (1)

Yahavw
Yahavw

Reputation: 129

Workaround for using the new android.jar in Android Studio:

  • Replace the /platforms/android-/android.jar with the new android.jar that located at /out/host/linux-x86/sdk/sdk/sdk/android-sdk_eng./platforms/android-6.0.1/android.jar
  • Build the project.

Note: Before replacing the jar file, be sure that you have downloaded the appropriate android SDK from the Android SDK Manager. For example: If your custom SDK is for android-23, download the android-23 SDK platform. The compileSdkVersion 23 field in the app's build.gradle file, must be equal to the custom SDK number you created.

Upvotes: 2

Related Questions