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.
如图:

Android 开发 环境的配置 Eclipse +SDK +ADT_第1张图片

第五步:创建虚拟手机

直接上图:

Android 开发 环境的配置 Eclipse +SDK +ADT_第2张图片

然后 new 创建就OK了 当然可以多虚拟设备 第六步: Eclipse 创建项目 -Run -run 就OK了 需要注意的地方: Eclipse 和 sdk路径不要放置在中文路径文件夹下,以免引起莫名其妙的错误! Error generating final archive: Debug certificate expired on xxxxxx(日期)解决办法 删除 解决办法:
进入: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


更多相关文章

  1. 64位Ubuntu配置android环境报错(...adb": error=2, 没有那个文件
  2. Ubuntu Android NDK环境的配置
  3. Android 开发环境准备(Ubuntu)
  4. Android 下arcgis开发学习第一天——环境配置及常见错误
  5. [Android入门]1. Android开发环境搭建
  6. [置顶] Android应用程序中加载进度设计
  7. Android应用程序获取ROOT权限的方法
  8. MAC下Android的Eclipse开发环境的搭建

随机推荐

  1. 杂谈:Google要解决的关于Android的问题
  2. 在手机应用研发方面,IT专业人士对Android
  3. 音乐你的生活—Android(安卓)QQMusic 设
  4. Android之 Notification 的多种用法--带
  5. Android UI组件进阶(1)——带进度条的按
  6. Android使用ApacheFtpServer实现Ftp服务
  7. 浅谈一种Android客户端架构设计
  8. Android 不得不说的VideoView的一些坑及
  9. Git新手入门与上传项目到远程仓库GitHub
  10. 高版本Android如何利用反射调用系统隐藏