1.第一次打开Studio
2.点击创建新项目
然后填上相关信息,注意在Company Domain(公司域名)地方的填写,不同于Eclipse对应实际电脑中文件夹,而是在你所选择的Project文件夹下创建和Application name同名的文件夹,如我的电脑上是:C:\AndroidStudioProject\GeoQuiz
点击下一步
3.选择你要编写的程序将在何种设备上运行,这里选择“手机和平板”,然后选择最小支持的SDK(软件开发工具包),目前Google发布的最新是安卓6.0版本,但仍有大量用户在使用较早的版本。在这里我们可以依照软件默认的配置——Android 4.1。点击下一步
4.选择是否使用已有的模板,由于是第一次,不需要太过复杂的模板,选择空白活动,然后由我们自己构建=)
5.对空白活动进行详细命名
此处引用原文:
The layout name will automatically update to activity_quiz to reflect the activity’s new name. The layout name reverses the order of the activity name, is all lowercase, and has underscores between words. This naming style is recommended for layouts as well as other resources that you will learn about later. For the Title, enter GeoQuiz to match the name of the app. Leave the Menu Resource Name as is and click Finish. Android Studio will create and open your new project.
即为了反映Activity的命名,Layout(框架)的命名也将自动更改为新的名称——actvity_quiz
对于Layout以及许多以后会用到的其他资源的命名规则:
6.得到一个初始状态的项目:
此处讲解一部分Studio的界面各代表什么
7.点击菜单栏——Build——Make Project(或Ctrl+F9)以编译整个项目。等待一会后,点击菜单栏中Run——Run App(或Shift+F10或点击工具栏中绿色的小三角)以运行程序。之后程序会在模拟器中运行。
然后讲解模拟器:
运行效果(此处以Studio自带的为例):
No.02——第一次使用Android Studio,并创建出Hello World
原文:http://www.cnblogs.com/QingHuan/p/4998940.html