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