简体   繁体   English

如何构建自己的Android SDK

[英]How to build my own Android SDK

I work on my own android device which has many new APIs (but @hide decorated). 我在我自己的Android设备上工作,它有许多新的API(但@hide装饰)。 My goal is to provide an android sdk to develop on it and use these new APIs. 我的目标是提供一个android sdk来开发它并使用这些新的API。

So my questions is : How to build my own android sdk with these new APIs ? 所以我的问题是:如何用这些新的API构建我自己的android sdk?

If the @hide decorated is a problem, i can remove them (I don't have to respect the CDD ) 如果@hide装饰是一个问题,我可以删除它们(我不必尊重CDD

You can use this command 您可以使用此命令

make -j8 PRODUCT-sdk-sdk showcommands dist

here, you can a discussion about it : https://groups.google.com/forum/?fromgroups=#!topic/android-building/Y0xduZPWtUs 在这里,您可以对它进行讨论: https//groups.google.com/forum/?fromgroups =#!topic / installer -building / Y0xduZPWtUs

I think the concept of SDK is being misunderstood here. 我认为SDK的概念在这里被误解了。

If you want to release a set of code (API) on top of the Android SDK (Utilities, math libraries, what have you?) just mark your project as a library (Project properties -> Android -> Tick "Is Library") so other Android projects can link to it easily. 如果你想在Android SDK(实用程序,数学库,你有什么?)上发布一组代码(API),只需将项目标记为库(项目属性 - > Android - >勾选“是库”)所以其他Android项目可以轻松链接到它。

Upload the project somewhere like Github and spread the link so others can use it. 上传项目,如Github,并传播链接,以便其他人可以使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM