安卓软件安装

来源:互联网 发布:java float 0 比较 编辑:程序博客网 时间:2024/04/29 03:39

安卓软件安装需要 jdk eclipse sdk adt 这4个东西

1、首先安装jdk ,我的版本为jdk-8u45-windows-i586_8.0.450.14.1429092020。完成之后配置环境,步骤如下:

详情见链接:http://jingyan.baidu.com/article/e9fb46e1b2b3347521f766c1.html

步骤如下:

(1)在系统变量里点击新建,变量名填写JAVA_HOME,变量值填写JDK的安装路径,在这里就填写“C:\Program Files\Java\jdk1.8.0_45”了。

(2)在系统变量里点击新建变量名填写CLASSPATH,变量值填写“.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar”。注意不要忘记前面的点和中间的分号。

(3)在系统变量里找到Path变量,这是系统自带的,不用新建。双击Path,由于原来的变量值已经存在,故应在已有的变量后加上“;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin”。注意前面的分号。

(4)至此,应有的环境变量已经配置完毕。验证的方法:在运行框中输入cmd命令,回车后输入java,按回车出现以下画面

(5)输入javac,按回车出现以下画面,则表示设置成功。

2、再下载eclipse 这个是只需要解压之后就能用的,是开发界面,可以开发安卓也可以开发java 项目

3、之后要下载sdk 这个是配置安卓的功能用的,下载网站以及说明是http://developer.android.com/sdk/installing/adding-packages.html  需要下载什么内容以及如何下载说的非常清楚。但是有的网络上不去,这里贴出其步骤。

最后还是用到了一个代理软件,叫做自由门7.42,非常好用,设置到goole下载的服务连接之后,就能欢快的下载和更新了,我发现一切问题都是因为这个没有代理引起的,这个值得特别注意。关键还能隐藏ip非常给力,我喜欢。

首先需要下载sdk包installer_r24.3.3-windows,并安装,会自动打开sdk managener,选择以下黑体部分安装。

并将其安装路径,添加进环境变量。如D:\Program Files\Android\android-sdk

As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:
1、Open the Tools directory and select:
Android SDK Tools
Android SDK Platform-tools
Android SDK Build-tools (highest version)

2、Open the first Android X.X folder (the latest version) and select:
SDK Platform
A system image for the emulator, such as
ARM EABI v7a System Image


3、Get the support library for additional APIs
The support library is required for:
The Android Support Library provides an extended set of APIs that are compatible with most versions ofAndroid.
Open the Extras directory and select:
Android Support Repository
Android Support Library


4、Get Google Play services for even more APIs
The Google Play services APIs provide a variety of features and services for your Android apps, such as:
Open the Extras directory and select:
Google Repository
Google Play services

通过第三步,可以完全加载安卓项目,且可以通过android vitrual device设置模拟器。插上手机,在DDMS中也能看到手机设备。到这一步如果完成,就不需要安装adt了。说明已经安装过了。

唯一一个问题是,在对项目右键调试的时候,没有安卓调试的选项,因此需要配置,添加一个安卓调试器。

4、安装adt 具体说明也可以在官网上看到 http://developer.android.com/sdk/installing/installing-adt.html,但是有的网络就是上不去,这里同样贴出来。

  1. Download the ADT Plugin zip file (do not unpack it): //去网上找最新的版本,不要解压
  2. Start Eclipse, then select Help > Install NewSoftware. 
  3. Click Add, in the top-right corner.
  4. In the Add Repository dialog, click Archive.
  5. Select the downloaded ADT-20.0.3.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 clickNext.
  8. In the next window, you'll see a list of the tools to be downloaded. ClickNext.
  9. Read and accept the license agreements, then click Finish.

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

  10. When the installation completes, restart Eclipse.

To update your plugin once you've installed using the zip file, you will haveto follow these steps again instead of the default update instructions.

重启之后需要选择,"Use existing SDKS"

如果说已经提示说安装,那么就不需要安装了。


5、接下来配置avd 就可以用了

6、配置环境以及run as 要从左侧的项目开始运行,要不然会显示错误之类的

 

0 0