`
minghe_zy
  • 浏览: 123783 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

eclipse下安装ADT

 
阅读更多

一、在线安装:启动eclipse,在Help菜单中,选择install New software...,选对available software,点击右侧的add site...,输入下载地址https://dl-ssl.google.com/android/eclipse/

后面步骤根据提示就可以了。

 

二、离线安装,直接下载一个ADT的安装包,解压缩后,应该有两个文件夹,plugins和features,在你的Eclipse中找到这两个文件夹, 把ADT中的plugins和features分别复制到Eclipse的plugins和features文件夹中。

 

三、安装ADT时遇到的问题

1、使用eclipse3.4版本,在线安装ADT时,报错

提示:The operation cannot be completed. See the details.

好像是eclipse版本的问题,然后在eclipse官方下载了http://www.eclipse.org/downloads/

下载了 如下图:

下载完成后,解压缩eclipse,进入时又报错 如下图:

在网上搜搜了修改eclipse.ini文件

源文件:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

修改后

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

修改完成后重新打开eclipse,就可以了。继续执行在线安装ADT,按照步骤完成就可以了。

安装完ADT后就可以再eclipse中创建android的项目了

接下来配置AVD

进入运行窗口cmd

输入--》android list targets如果提示android不是内部或外部指令

需要在配置android_sdk的环境变量,把sdk的tools文件夹路径放到path下,就可以了。

配置AVD

android create avd --name <your_avd_name> --target <targetID>

然后会在C:\Documents and Settings\Administrator\文件夹中找到.android文件夹。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics