Android 开发 环境的配置 Eclipse +SDK +ADT

Android 开发 环境的配置 Eclipse +SDK +ADT

第一步:

http://www.eclipse.org/downloads/

推荐下载 Eclipse Classic 版本 需要JDK1.6

下载后解压缩 就可以运行了

 第二步:下载SDK

http://developer.android.com/sdk/index.html

现在解禁了方便多了,官网上也有介绍!  

英文好的可以看这里:http://developer.android.com/sdk/installing.html

下载后运行下载SDK 就可以了所有的版本都可以下载!

第三步:ADT

Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
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/

出来的选项都下载下来安装就可以了!

第四步:配置SDK


Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
Select Android from the left panel.

You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.

For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory. 
Click Apply, then OK.
如图: 

 
 

 第五步:创建虚拟手机

直接上图:

 
然后 new 创建就OK了 当然可以多虚拟设备
 
第六步:
Eclipse 创建项目 -Run -run 就OK了
 
需要注意的地方:
Eclipse 和 sdk路径不要放置在中文路径文件夹下,以免引起莫名其妙的错误!
 
删除
解决办法:
进入:C:\Documents and Settings\Administrator\.android
删除:debug.keystore及 ddms.cfg
如何找到您的目录路径: 右击项目->android tools->export signed android package生成签名的包
 
原因:
android要求所有的程序必须有签名,否则就不会安装该程序。在我们开发过程中,adt使用debug keystore,在 preference->android->buid中设置。debug的keystore默认有效期为一年,如果你是从一年前开始开发android程序,那么很可能出现debug keystore过期,导致你无法生成 apk文件。我调了一下系统时间,就出现以下错误。此时你只要删除debug keystore就行,系统又会为你生成有效期为一年的私钥。 
[2011-08-29 19:47:03 - helloworld] Error generating final archive: Debug certificate expired on 10-6-18 下午10:12! 
   当你release时,你可以用 右击项目->android tools->export signed android package生成签名的包。再此过程中,如果你还没有你自己的私钥,adt会自动调用 keytool 来为你生成。请保护好你的私钥,否则被人盗用的话,就用攻击你的签名程序了。 
   release前还应注意版本号,在manifest.xml中有两个字段android:versionCode="1"和android:versionName="1.0",其中前者是给程序或者android使用,以1递增。后者是给用户看的,在这里你就可以使用主版本号 次版本号 build号灯字符串。
 

 

 SVN  安装 参考这里:http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA


原文地址:https://www.cnblogs.com/piaocz/p/2221377.html