[Android4] 安卓开发-1.0环境配置与相关下载

1.JDK下载安装

JAVA官网:http://www.java.com


图1.0.1


图1.0.2

点击 同意并开始免费下载  进行下载安装(安装到C:java下或系统默认这里影响 环境变量的配置)

附:环境变量的配置说明

1).打开我的电脑--属性--高级--环境变量 

2).新建系统变量JAVA_HOME 和CLASSPATH 
变量名:JAVA_HOME 
变量值:C:\Program Files\Java\jdk1.7.0
变量名:CLASSPATH 
变量值:.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

3). 选择“系统变量”中变量名为“Path”的环境变量,双击该变量,把JDK安装路径中bin目录的绝对路径,添加到Path变量的值中,并使用半角的分号和已有的路径进行分隔。 
变量名:Path 
变量值:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
这是java的环境配置,配置完成后直接启动eclipse,它会自动完成java环境的配置

2.SDK下载安装

安卓官网:http://developer.android.com/index.html


图1.0.3

点击 Get the SDK 进入SDK下载页面(如图1.1)


图1.0.4

选择 SDK Tools Only(这里可以选择整体ADT工具包安装,吐槽下下载速度...需要配置host下),下列表中的


图1.0.5

提示下载接受条款后进行下载


下载完毕后,进行安装点击 Next

图1.0.6

SDK会自动搜索刚才安装JAVA(JDK)的路径(如无法找到请查看JDK安装是否正确,环境变量是否正确配置),点击Next

图1.0.7

进入 Choose Users选择适合的用户 点击Next


图1.0.8

这里修改安装的默认地址(图1.0.8),进行安装就可以了

图1.0.9

点击Next,进入Finish完成页面 点击Finish

图1.1.0

安装完成后会自动进入 Android SDK Manager

图1.1.1


点击选择需要安装的 package 点击 Install 73packages

图1.1.2

选择 Accept Licence 点击 Install

图1.1.3


3.开发工具eclipse下载

eclipse官方网站:http://www.eclipse.org/downloads/

图1.6


进入页面后点击 镜像下载地址进行下载

图1.7


下载并安装,完成后需要安装ADT插件,插件安装有在线模式和离线模式在这里推荐离线模式,


安装说明地址(详细描述了各种方式的安装 http://developer.android.com/sdk/installing/installing-adt.html)(图1.8)

在线模式安装




图1.8

其中描述如何安装插件 这里大体说下(直接粘贴了...):


  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
    https://dl-ssl.google.com/android/eclipse/
  4. Click OK.

    If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).

  5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  7. Read and accept the license agreements, then click Finish.

    If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

  8. When the installation completes, restart Eclipse.
离线模式

推荐离线模式,因为比较快速(还是粘贴了...):

  1. Download the ADT Plugin zip file (do not unpack it):
    Package Size MD5 Checksum
    ADT-22.3.0.zip 14493723 bytes 0189080b23dfa0f866adafaaafcc34ab
  2. Start Eclipse, then select Help > Install New Software.
  3. Click Add, in the top-right corner.
  4. In the Add Repository dialog, click Archive.
  5. Select the downloaded ADT-22.3.0.zip file and click OK.
  6. Enter "ADT Plugin" for the name and click OK.
  7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  8. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  9. Read and accept the license agreements, then click Finish.

    If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

  10. When the installation completes, restart Eclipse.

安装完成后会提醒你重启,然后就可以进行相关应用的开发了。




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值