简体   繁体   English

SDK Manager中的Android软件包

[英]Android Packages in SDK Manager

I just started programming Android applications. 我刚刚开始编写Android应用程序。 I have installed everything, but I wonder: Do I have to install all the packages specified by Android SDK Manager? 我已经安装了所有东西,但是我想知道:我是否必须安装Android SDK Manager指定的所有软件包? If not, how do I know the most important ones for someone just starting out? 如果不是,我怎么才知道对于刚起步的人来说最重要的?

You only install the packages that you want. 您只安装所需的软件包。 You need to determine what version of Android you are going to write apps for, but if you are in doubt download all of them. 您需要确定要为其编写应用程序的Android版本,但是如果不确定,请下载所有应用程序。 Remember that you can write an app in a later version of Android, but make it compatible with earlier versions when you create your project. 请记住,您可以在更高版本的Android中编写应用程序,但在创建项目时使其与早期版本兼容。 Another option is to look and see what version of Android is most popular, 2.3, and use it. 另一个选择是查看并查看最流行的Android版本2.3。 That is just a few ideas. 那只是一些想法。

You don't necessarily have to have everything installed, though, it doesn't hurt to. 但是,您不必一定要安装所有内容,这不会造成任何伤害。 You only need to download the version of the SDK with which you would like to program against. 您只需要下载要使用的SDK版本。 So, if you want to write your application to work on ICS, you would download only the APIs corresponding to that version, which I believe is 14, though I'm not in front of my workstation to verify. 因此,如果您要编写可在ICS上运行的应用程序,则只下载与该版本相对应的API(我认为是14),尽管我不在工作站前进行验证。

If you want to program on earlier versions such as Gingerbread, then you would download the 2.3 version of the APIs and so on and so on. 如果要使用Gingerbread等早期版本进行编程,则可以下载API的2.3版本,依此类推。

Additionally, you will need to get APIs to certain devices from Samsung, Kyocera and the likes if you're going to support specific hardware functions to those said devices. 此外,如果您要为上述设备支持特定的硬件功能,则需要从Samsung,Kyocera等获得某些设备的API。

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

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