﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-笨鸟-随笔分类-android</title><link>http://www.blogjava.net/zhou-zhihao/category/46989.html</link><description>天道酬勤，思者常新；博观约取，厚积薄发；心如止水，气贯长虹；淡泊明志，宁静致远。</description><language>zh-cn</language><lastBuildDate>Wed, 24 Nov 2010 17:39:05 GMT</lastBuildDate><pubDate>Wed, 24 Nov 2010 17:39:05 GMT</pubDate><ttl>60</ttl><item><title>Windows下git下载android source</title><link>http://www.blogjava.net/zhou-zhihao/archive/2010/11/11/337768.html</link><dc:creator>ClumsyBird</dc:creator><author>ClumsyBird</author><pubDate>Wed, 10 Nov 2010 16:03:00 GMT</pubDate><guid>http://www.blogjava.net/zhou-zhihao/archive/2010/11/11/337768.html</guid><wfw:comment>http://www.blogjava.net/zhou-zhihao/comments/337768.html</wfw:comment><comments>http://www.blogjava.net/zhou-zhihao/archive/2010/11/11/337768.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhou-zhihao/comments/commentRss/337768.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhou-zhihao/services/trackbacks/337768.html</trackback:ping><description><![CDATA[<p style="font-size: 12pt"><span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">一 安装git<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px"><a href="http://code.google.com/p/msysgit/downloads/list">http://code.google.com/p/msysgit/downloads/list</a></span></span>下载，安装即可。<br />
<br />
二 </span></span><span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">android代码仓库<br />
<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://android.git.kernel.org">http://android.git.kernel.org</a>&nbsp;可以看到android所有git包的列表。<br />
<br />
三 下载android source<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">在windows下创建目录android src，右击选择Git Bush,输入<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">git clone git://android.git.kernel.org/platform/external/v8.git</span></span>，即可下载<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">external/v8下的源代码.其他的源码下载以此类推。<br />
<br />
四 命令解释<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">git clone是命令</span></span>，<span class="Apple-style-span" style="word-spacing: 0px; font: 12px Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><span class="Apple-style-span" style="line-height: 20px">git://android.git.kernel.org/platform/external/v8.git，可以选择git包列表的一项，点击进入，在<a href="http://android.git.kernel.org/">http://android.git.kernel.org</a>&nbsp;中可以看到。<br />
<br />
@anthor ClumsyBird</span></span></span></span></span></span></span></span></span></span></p>
<img src ="http://www.blogjava.net/zhou-zhihao/aggbug/337768.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhou-zhihao/" target="_blank">ClumsyBird</a> 2010-11-11 00:03 <a href="http://www.blogjava.net/zhou-zhihao/archive/2010/11/11/337768.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Android开发环境搭建</title><link>http://www.blogjava.net/zhou-zhihao/archive/2010/11/10/337764.html</link><dc:creator>ClumsyBird</dc:creator><author>ClumsyBird</author><pubDate>Wed, 10 Nov 2010 14:36:00 GMT</pubDate><guid>http://www.blogjava.net/zhou-zhihao/archive/2010/11/10/337764.html</guid><wfw:comment>http://www.blogjava.net/zhou-zhihao/comments/337764.html</wfw:comment><comments>http://www.blogjava.net/zhou-zhihao/archive/2010/11/10/337764.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/zhou-zhihao/comments/commentRss/337764.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/zhou-zhihao/services/trackbacks/337764.html</trackback:ping><description><![CDATA[<span style="word-spacing: 0px; font: medium Simsun; text-transform: none; color: rgb(0,0,0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2"><span style="font-size: 12px; color: rgb(70,65,45); line-height: 20px; font-family: Tahoma"><span style="font-size: 12pt"><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">一 相关下载</span></span><br />
<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;(1) java JDK下载:</span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">进入该网页:<span class="Apple-converted-space">&nbsp;</span><a style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma; text-decoration: none" href="http://java.sun.com/javase/downloads/index.jsp">http://java.sun.com/javase/downloads/index.jsp</a><span class="Apple-converted-space">&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择 Download JDK 只下载JDK，无需下载jre.<br />
<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;(2)eclipse下载</span></span>:<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma"><span class="Apple-converted-space">&nbsp;</span>进入该网页:<span class="Apple-converted-space">&nbsp;</span><a style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma; text-decoration: none" href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">我们选择第一个(即eclipse IDE for java EE Developers)</span></span>.<br />
<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;(3)下载Android SDK</span></span>:<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">说明: Android SDK两种下载版本，一种是包含具体版本的SDK的，一种是只有升级工具，而不包含具体的SDK版本，后一种大概20多M，前一种70多M。</span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma"><font face="Tahoma" color="#46412d">http://developer.android.com/sdk/<br />
</font><br />
<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">二 软件安装<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(1)安装jdk:&nbsp;安装完成即可，无需配置环境变量.<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(2)解压eclipse:eclipse无需安装，解压后，直接打开就行.<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(3)解压android sdk:这个也无需安装，解压后供后面使用<br />
<br />
<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">三 Eclipse配置</span></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;(<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">1) 安装android 开发插件<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">打开Eclipse, 在菜单栏上选择 help-&gt;Install New SoftWare,<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">点击 Add按钮,</span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma"><span style="line-height: normal"><span style="line-height: normal">输入网址:<span class="Apple-converted-space">&nbsp;</span><a style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma; text-decoration: none" href="https://dl-ssl.google.com/android/eclipse/">https://dl-ssl.google.com/android/eclipse/</a>&nbsp;&nbsp;&nbsp; (如果出错，请将https改成http)</span></span><span style="line-height: normal"><span style="line-height: normal">名称: Android (这里可以自定义),<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">点击OK，选择Developer&nbsp;Tools,点击Next，点击next，选择accept，点击next，等待安装完成，重启eclipse。<br />
</span></span></span></span></span></span></span></span></span></span>&nbsp;&nbsp;&nbsp;&nbsp;(2)<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">配置android sdk</span></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">点击菜单window-&gt;preferences,</span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择你的android SDK解压后的目录，选错了就会报错，这个是升级工具，目前还没有一个版本的SDK</span></span>,<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">升级SDK版本,选择菜单 window-&gt;Android sdk and avd manager</span></span>,<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择update all按钮，</span></span><span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择左边的某一项，点击accept表示安装，点击reject表示不安装，我这里只选了SDK 2.1 和samples for api 7 , 自己可以任意自定义，确定后，选择install按钮，进入安装界面,等待安装完成。<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(3)新建AVD(android vitural device)&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;和上面一样，进入android sdk and avd manager,选中Vitural Devices 在点击New按钮，<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">名称可以随便取，target选择你需要的SDK版本，SD卡大小自定义,点击 Create AVD,点击ok，创建AVD完成。<br />
</span></span></span></span><br />
四 <span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">新建Android项目</span></span>&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(1)新建项目<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;选择菜单file-&gt;new-&gt;other,<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择新建Android Project项目，点击Next按钮</span></span>,<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">名称自定义，应用程序名自定义，报名必须包含一个点以上，min SDK version里面必须输入整数</span></span>,点击<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">finish。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">注: 若有错误如: Project ... is missing required source folder: 'gen' ,则将gen-&gt;Android.Test-&gt;R.java这个文件删掉，Eclipse会为我们重新生成这个文件，并且不会报错</span></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">(2)配置运行<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">右键项目-&gt;Run as -&gt; Run Configuration，<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">点击Browse 按钮，选择你要运行的项目</span></span>，<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">选择Target切换界面，<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">该界面选择运行的AVD，将AVD前面的方框设置为选择状态。</span></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;(3)<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">测试项目运行</span></span><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">右键项目名称-&gt;run as -&gt;Android Application 即可启动运行该Android程序.<br />
<br />
五 <span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">结束语<br />
</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; word-spacing: 0px; text-transform: none; color: rgb(0,0,0); text-indent: 0px; line-height: normal; font-style: normal; font-family: Simsun; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal; orphans: 2; widows: 2"><span style="color: rgb(70,65,45); line-height: 20px; font-family: Tahoma">至此，android开发环境搭建完毕，有问题请留言。</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span> </span></span></span><br />
<br />
@anthor ClumsyBird
<img src ="http://www.blogjava.net/zhou-zhihao/aggbug/337764.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/zhou-zhihao/" target="_blank">ClumsyBird</a> 2010-11-10 22:36 <a href="http://www.blogjava.net/zhou-zhihao/archive/2010/11/10/337764.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>