Android 41: Make Your own Android SDK

Source: Internet
Author: User

Compiling your own SDK

Special devices have some additional functionality, which requires a specific API for the application layer, which requires customization of its own SDK.
Compiling your own SDK is simple, because Google helps us do the basic work, the steps are as follows:

$ source build/envsetup.$launch‘what you want‘$ make update-api$ make PRODUCT-sdk-sdk-j8

If all is well compiled, congratulations. It doesn't matter if you encounter an error, because it is normal. The main errors I have encountered are listed below: Tools/base not.
Error1:

285: cd: tools/base: No such file or directory...285: cd: tools/base: No such file or directory...471

Modify Create_all_symlinks.sh
Comment out all the places in the file that need to be tools/base.

Error2:

sdk/build/tools.atree:124couldn‘t locate source file: tools/base/templates/projectssdk/build/tools.atree:125couldn‘t locate source file: tools/base/templates/activitiessdk/build/tools.atree:126couldn‘t locate source file: tools/base/templates/gradlesdk/build/tools.atree:127couldn‘t locate source file: tools/base/templates/othermake*** [out/host/linux-x86/sdk/android-sdk_eng.linc_linux-x86.zip] Error 44

Modify Tools.atree

$ vim sdk/build/tools.atree
# Templates#tools/base/templates/projects                  tools/templates/projects#tools/base/templates/activities                tools/templates/activities#tools/base/templates/gradle                    tools/templates/gradle#tools/base/templates/other                     tools/templates/other

Once again the change is not far from success, the following is a successful log.

out/host/linux-x86/sdk/android-sdk_eng.linc_linux-x86.zipSDK:out/target/product/generic/system/lib/libgccdemangle.so
Using the SDK

Unzip the android-sdk_eng.linc_linux-x86.zip to your favorite directory, and the settings in Android Studio are as follows:
File->project structure->sdk location, fill in the directory you just unzipped.
Try using a custom API to test it, good luck!

Reference:
Http://blog.csdn.net/edsam49/article/details/44996353#reply

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android 41: Make Your own Android SDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.