源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

myeclipse android环境搭建图文教程

  • 时间:2020-02-14 04:44 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:myeclipse android环境搭建图文教程
1,基本环境准备: 安装JDK1.5以上,Eclipse3.3以上版本.(MyEclipse也可以),笔者安装了JDK1.6和MyEclipse 8.6。 [img]http://files.jb51.net/file_images/article/201211/20121130145035106.png[/img] JDK1.6 [img]http://files.jb51.net/file_images/article/201211/20121130145035107.jpg[/img] MyEclipse 8.6 2,下载Android SDK 非 常不幸的是,Android.com 被我们强大的GFW 给墙了,但是我们又不得不去官网下载(当然,你能从朋友手中拿到SDK也很不错哦),让我们不得不***。当然***的方法很多,我这里也不能说了,如果 你实在没有找到方法,可以加QQ 276294057 和我交流。 地址:http://developer.android.com/sdk/index.html 下载成功后: [img]http://files.jb51.net/file_images/article/201211/20121130145035108.png[/img] Android SDK文件 解压到某目录下: [img]http://files.jb51.net/file_images/article/201211/20121130145035109.png[/img] 解压文件 [img]http://files.jb51.net/file_images/article/201211/20121130145035110.png[/img] 解压目录 双击SDK Setup.exe 安装SDK,安装完成后,文件夹入下图所示: [img]http://files.jb51.net/file_images/article/201211/20121130145035111.png[/img] 安装SDK 3,配置SDK环境变量: 主要是在path 中加入SDK 下的tools目录: [img]http://files.jb51.net/file_images/article/201211/20121130145035112.png[/img] 在path 中加入SDK 下的tools目录 环境变量: [img]http://files.jb51.net/file_images/article/201211/20121130145035113.png[/img] 环境变量 完成以后SDK就算配置完成。 4,给MyEclipse安装ADT插件 打开eclipse的help菜单->MyEclipse Configuration Center [img]http://files.jb51.net/file_images/article/201211/20121130145035114.png[/img] 打开eclipse的help菜单 进入后点击 Software 标签 [img]http://files.jb51.net/file_images/article/201211/20121130145035115.png[/img]   Software 标签 在Browser Software后面的 add site [img]http://files.jb51.net/file_images/article/201211/20121130145035116.png[/img] Browser Software 在对话框中填写如图所示:(name 自己取) [img]http://files.jb51.net/file_images/article/201211/20121130145035117.png[/img] 在对话框中填写名称后点击ok 然后在左边会出现 如下的 [img]http://files.jb51.net/file_images/article/201211/20121130145035118.png[/img] 点击Add to Profile 选中目标,右键点击Add to Profile,于是在右边的Software Updates Available 就会有所反应, [img]http://files.jb51.net/file_images/article/201211/20121130145035119.png[/img]   Software Updates Available   然后点击下面的Apply 2 changes 来开始安装 [img]http://files.jb51.net/file_images/article/201211/20121130145035120.png[/img] 点击下面的Apply 2 changes [img]http://files.jb51.net/file_images/article/201211/20121130145035121.png[/img] 开始安装 点击接受下面的许可,继续。 [img]http://files.jb51.net/file_images/article/201211/20121130145035122.png[/img] 点击接受 接着点击Update开始安装。这个过程可能有点慢,耐心等待他的完成。 [img]http://files.jb51.net/file_images/article/201211/20121130145035123.png[/img] Update开始安装 5,配置MyEclipse  点击window –>preferences [img]http://files.jb51.net/file_images/article/201211/20121130145035124.png[/img] 点击window –>preferences 在Android选项,填写好SDK location,点击Apply后出现以下内容。 [img]http://files.jb51.net/file_images/article/201211/20121130145035125.png[/img] 点击Apply后出现的内容 6,AVD的管理 点击window-> Android SDK and AVD Manager [img]http://files.jb51.net/file_images/article/201211/20121130145035126.png[/img] Android SDK and AVD Manager 然后选择 Available Package 因为需要兼容性测试,如果条件允许,最好 多装些版本。 然后,点击Install Selected 开始安装。这又是一个漫长的过程,可能非常漫长。呵呵 安装好了后。我们开始建立一个虚拟机 [img]http://files.jb51.net/file_images/article/201211/20121130145035127.png[/img] 点击new [img]http://files.jb51.net/file_images/article/201211/20121130145035128.png[/img] 创建 创建成功后,可以启动试试 [img]http://files.jb51.net/file_images/article/201211/20121130145035129.png[/img]   启动,点击Start [img]http://files.jb51.net/file_images/article/201211/20121130145035130.png[/img] 开始启动模拟器 点击Start ,然后点击launch,开始启动模拟器。 7,创建Hello World程序 创建一个Android 项目 [img]http://files.jb51.net/file_images/article/201211/20121130145035131.png[/img] 点击next [img]http://files.jb51.net/file_images/article/201211/20121130145035132.png[/img]   点击finish 右键点击项目->Run As –> Android Application [img]http://files.jb51.net/file_images/article/201211/20121130145035133.png[/img] 点击右键 即可看到效果: [img]http://files.jb51.net/file_images/article/201211/20121130145035134.png[/img] 搭建成功 现在,你可以开始研究这个Hello Word 程序了,祝你好运。谢谢
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部