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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With