freeCodeCamp/guide/chinese/miscellaneous/getting-started-with-androi.../index.md

49 lines
4.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Getting Started with Android Development
localeTitle: Android开发入门
---
如今, [Android](https://www.android.com/)已成为各种设备中使用的领先操作系统如手机平板电脑手表电视汽车等等。它为全球超过10亿台设备供电。它基于Linux内核。自2013年以来Android一直是平板电脑上最畅销的操作系统而在智能手机上它是任何指标的主导。
## 先决条件
要开始使用Android开发您应该已经了解了一些事情
* [Java](https://java.com/en/) Android开发大多是用Java完成的。这不是一门难学的语言但如果没有坚实的语言基础了解它如何应用于Android开发可能会让人感到困惑。 Android Java并不完全是标准Java但学习标准Java将使您更容易获得Android开发。对于Java中可能有用的特定主题您可以参考[此](http://www.bigknol.com/2016/01/10-prerequisites-for-learning-android.html)链接。
* [XML](http://www.w3schools.com/xml/) 了解XML在许多技术相关领域都很有用Android也不例外。特别是XML文件可以更容易地在您创建的应用程序中声明UI元素。过去的经验是一大优点。
* 坚持不懈最后了解Android开发工具包的细节需要时间。学习如何创建高质量的应用程序将花费更多的时间。别急。坚持下去长期关注你的思想。如果你不这样做你会感到沮丧并且想要放弃。
## 工具
首先,确保您拥有系统中的所有工具。 **请注意继续学习Android开发所需的软件包需要下载超过1 GB的大小安装大约需要2到3个小时。**开始构建Android应用程序所需的东西是
* [最新版本的Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) [以下](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Java-Introduction)是在您的计算机上安装Java的指南。
* [Android Studio](http://developer.android.com/sdk/index.html) [](http://developer.android.com/sdk/installing/index.html)是安装Android studio的官方指南。
* 如果可能的话Android设备。如果不这样做也可以因为您可以运行[模拟器](http://developer.android.com/tools/devices/emulator.html)在计算机上运行Android虚拟设备。
## Kotlin语言支持
从Android Studio 3.0开始Kotlin的工具支持直接捆绑到Android Studio中。 **Kotlin**是一种静态类型的编程语言可以在Java虚拟机上运行也可以编译为JavaScript源代码。 Kotlin旨在与Java代码进行互操作并依赖于现有Java类库中的Java代码例如集合框架。 **Kotlin**旨在成为一种工业级的面向对象语言是一种比Java更好的语言但仍然可以与Java代码完全互操作允许公司逐步从Java迁移到Kotlin。
Android开发中Kotlin使用的一些好处
* Kotlin需要更少的代码来编写。
* Kotlin减少了压力。
* Kotlin是一种类型安全语言。
* Kotlin为您节省了宝贵的时间。
## 教程
学习Android开发的一些基础课程和教程
* [官方Android开发人员指南](http://developer.android.com/training/index.html) 对于初学者此网站有一个全面的培训部分从设置您的环境到构建您的第一个Android应用程序一直到分发最终应用程序并在Play商店赚钱。对于高级用户API指南和参考资料将始终帮助您找到最有效的应用程序开发问题解决方案。本指南还包含开发人员对高级开发主题所需的特定视频课程的链接。
* [CodePath Android Cliffnotes](https://guides.codepath.com/android)
* [TutorialsPoint](http://www.tutorialspoint.com/android/)
* [Vogella](http://www.vogella.com/tutorials/android.html)
## 资源
以下是Android开发库的一些有用链接
* Wasabeef推出的[令人敬畏的Android UI](https://github.com/wasabeef/awesome-android-ui)列表
* 由SnowDream提供的[Awesome Android Libraries](https://github.com/snowdream/awesome-android)列表
* Wasabeef推出的[令人敬畏的Android库](https://github.com/wasabeef/awesome-android-libraries)列表