Android 开发 环境的配置 Eclipse +SDK +ADT
2011-10-22 20:29
771 查看
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:
出来的选项都下载下来安装就可以了!
第四步:配置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路径不要放置在中文路径文件夹下,以免引起莫名其妙的错误!
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
第一步:
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路径不要放置在中文路径文件夹下,以免引起莫名其妙的错误!
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
相关文章推荐
- Android开发环境搭建:SDK在线离线安装+在Eclipse中配置ADT+第一个Android程序运行
- window下配置eclipse+android SDK+ADT的开发环境
- Eclipse+adt+sdk配置Android开发环境
- eclipse,JDK,Android-SDK-ADT开发环境的配置
- Android开发环境最新配置(Eclipse SDK +Android SDK+ADT)
- Android开发环境搭建:SDK在线离线安装+在Eclipse中配置ADT+第一个Android程序运行
- 手机APP开发 Eclipse,JDK,Android-SDK-ADT开发环境的配置
- Eclipse+SDK+ADT配置android开发环境
- win7搭建android开发环境——离线一体化配置Eclipse+ADT+SDK
- android 开发复习笔记-开发环境配置(SDK+JDK+Eclipse+ADT)
- eclipse配置 android开发环境 adt sdk ndk 及cocos2d-x
- Android 开发环境配置图文教程(jdk+eclipse+android sdk)
- 搭建Android开发环境(Eclipse+SDK+ADT)
- android sdk eclipse 开发环境配置
- Android 开发环境配置图文教程(jdk+eclipse+android sdk)
- Android 开发环境配置图文教程(jdk+eclipse+android sdk)
- Windows7下最新Android开发环境搭建(JDK1.7 + Eclipse Indigo(3.7) + SDK-r12 + ADT-12)
- Android开发搭环境步骤, ADT, JDK, SDK, NDK, Eclipse, CDT
- 64位ubuntu 11.10下android开发环境的搭建(jdk+Eclipse+adt+android sdk详细)
- Android--入门---2---(Android 的环境搭建&配置 JDK 1.6+ Eclipse + ADT +SDK(windows / ubuntu))