1.2.2 使用Android Studio开发Android APP
最后更新于:2022-04-01 05:24:17
## 写在前面
> 本节将介绍如何使用Android Studio开发Android APP,和前面Eclipse + ADT + SDK搭建Android开发环境一样,本节也只是介绍一些基本东西,深入的,比如快捷键,小技巧等会再另一篇文章中详细地介绍!
## 1.下载Android Studio
* * *
> **官网下载:**[Android Studio for Window ...](http://developer.android.com/sdk/installing/studio.html) **百度云下载:**[android-studio-bundle-141.1903250-windows.exe](http://pan.baidu.com/s/1eQ5ztTo)
* * *
## 2.安装Android Studio
傻瓜式的下一步而已,只列出需要注意的页面:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a80c531.jpg) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a81f7a1.jpg) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a82eac2.jpg)
* * *
## 3.新建工程
安装完毕后,打开我们的Android Studio,第一次启动需要下载SDK等一些东西,时间比较长,笔者等了大概40分钟才下载完毕
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a84d120.jpg)
选择第一项,新建一个Android项目
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a8c3dce.jpg)
选择开发程序将运行在哪个平台上:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a92d61e.jpg)
选择Activity的风格:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a9a6320.jpg)
设置进入程序一个页面后的Activity的一些信息
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a9cc30a.jpg)
Finish然后是漫长的等待~
* * *
## 4.IDE的界面分析
先看下整个界面吧:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5a9e3f6d.jpg)
接着看下我们的项目结构,而我们一般关心的只是app这个目录:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5aa11960.jpg)![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5aa244fb.jpg)
* * *
## 5.运行下程序试试
点击菜单栏的X,即可运行程序:
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2015-12-01_565da5aaec7fc.jpg)
* * *
## 6.本节小结
Android Studio的用法还是比较简单的,当然笔者也是刚用Android Studio,后续还会写一篇更深入一点的文章,这里大家琢磨琢磨,暂时能跑起程序,知道在哪里写代码,怎么看Logcat就可以了!