Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Android SDK: Only one Android target being created

Edit: I know I can download the SDK easily, but I specifically want to build everything myself. I'm trying to understand the build process more.

I used repo to download the AOSP source. Multiple places guide me to build the SDK as follows:

$ cd $AOSP_ROOT 
$ . build/envsetup.sh
$ lunch sdk-eng
$ make sdk

This works perfectly, I get a zip file with the SDK and the emulator works. However, the only Android target that is generated is the latest one e.g.

$ cd $SDK_ROOT/platforms
$ ls
android-4.0.4.0.4.0.4

is all I see. How can I get the other Android targets? Do I have to use repo to switch the branch of Android that I'm on, build the entire SDK and just copy out the appropriate target files? Is there some simpler way, like a different make target that would achieve this? Can I request that the SDK be built and that all targets be available? Should I just download a non-locally-compiled SDK and copy the targets to my SDK_ROOT/platforms?

like image 228
Hamy Avatar asked Apr 21 '12 04:04

Hamy


1 Answers

You need to use repo tool to switch to the appropriate branch and build your SDK for this branch. I do not think that it is possible to build SDK for all branches simultaneously.

like image 78
Yury Avatar answered Oct 19 '22 09:10

Yury