<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>游侠海外岛 &#187; 学习日志</title>
	<atom:link href="http://blog.7xiaowu.cn/category/%e5%ad%a6%e4%b9%a0%e6%97%a5%e5%bf%97/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.7xiaowu.cn</link>
	<description>这是一个托管于国外服务器的游侠小屋，所以叫游侠海外岛。</description>
	<lastBuildDate>Wed, 11 Jan 2012 18:15:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>导入ApiDemos项目报错的解决方法</title>
		<link>http://blog.7xiaowu.cn/2011/09/15/1586.html</link>
		<comments>http://blog.7xiaowu.cn/2011/09/15/1586.html#comments</comments>
		<pubDate>Thu, 15 Sep 2011 05:37:18 +0000</pubDate>
		<dc:creator>暗黑游侠</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[学习日志]]></category>

		<guid isPermaLink="false">http://blog.7xiaowu.cn/?p=1586</guid>
		<description><![CDATA[最近开始学习Android，拿着一本书就开始鼓捣，一开始看了书本的内容后，导入ApiDemo的项目，谁知道控制台就报错了：
[2011-09-11 19:30:29 - ApiDemos] D:\Android\android-sdk-windows\platforms\android-4\sam[......]<p class='read-more'><a href='http://blog.7xiaowu.cn/2011/09/15/1586.html'>查看全文.....</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近开始学习Android，拿着一本书就开始鼓捣，一开始看了书本的内容后，导入ApiDemo的项目，谁知道控制台就报错了：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1586code1'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15861"><td class="code" id="p1586code1"><pre class="java" style="font-family:monospace;"><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\values\strings.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">365</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> Apostrophe not preceded by \ <span style="color: #009900;">&#40;</span>in I<span style="color: #0000ff;">'m on! :))
[2011-09-11 19:30:29 - ApiDemos] D:<span style="color: #000099; font-weight: bold;">\A</span>ndroid<span style="color: #000099; font-weight: bold;">\a</span>ndroid-sdk-windows<span style="color: #000099; font-weight: bold;">\p</span>latforms<span style="color: #000099; font-weight: bold;">\a</span>ndroid-4<span style="color: #000099; font-weight: bold;">\s</span>amples<span style="color: #000099; font-weight: bold;">\A</span>piDemos<span style="color: #000099; font-weight: bold;">\r</span>es<span style="color: #000099; font-weight: bold;">\v</span>alues<span style="color: #000099; font-weight: bold;">\s</span>trings.xml:366: error: Apostrophe not preceded by <span style="color: #000099; font-weight: bold;">\ </span>(in I'</span>m off<span style="color: #339933;">!</span> <span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\values\strings.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">643</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> Apostrophe not preceded by \ <span style="color: #009900;">&#40;</span>in  The Android platform is a software stack <span style="color: #000000; font-weight: bold;">for</span> mobile devices including an
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  operating system, middleware and key applications. <span style="color: #006633;">Developers</span> can create
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  applications <span style="color: #000000; font-weight: bold;">for</span> the platform using the Android SDK. <span style="color: #006633;">Applications</span> are written
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  using the Java programming language and run on Dalvik, a custom virtual
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  machine designed <span style="color: #000000; font-weight: bold;">for</span> embedded use which runs on top of a Linux kernel.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  <span style="color: #000000; font-weight: bold;">If</span> you want to know how to develop applications <span style="color: #000000; font-weight: bold;">for</span> Android, you<span style="color: #0000ff;">'re in the
[2011-09-11 19:30:29 - ApiDemos]  right place. This site provides a variety of documentation that will help you
[2011-09-11 19:30:29 - ApiDemos]  learn about Android and develop mobile applications for the platform.
[2011-09-11 19:30:29 - ApiDemos]
[2011-09-11 19:30:29 - ApiDemos]  An early look at the the Android SDK is also available. It includes sample
[2011-09-11 19:30:29 - ApiDemos]  projects with source code, development tools, an emulator, and of course all
[2011-09-11 19:30:29 - ApiDemos]  the libraries you'</span>ll need to build an Android application. <span style="color: #006633;">What</span> would it take
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span>  to build a better mobile phone<span style="color: #339933;">?</span>
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\layout\scrollbar3.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">87</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'text'</span> with value <span style="color: #0000ff;">'@string/scrollbar_3_text'</span><span style="color: #009900;">&#41;</span>.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\layout\scrollbar3.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'text'</span> with value <span style="color: #0000ff;">'@string/scrollbar_3_text'</span><span style="color: #009900;">&#41;</span>.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\layout\scrollbar3.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">117</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'text'</span> with value <span style="color: #0000ff;">'@string/scrollbar_3_text'</span><span style="color: #009900;">&#41;</span>.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\layout\scrollbar3.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">129</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'text'</span> with value <span style="color: #0000ff;">'@string/scrollbar_3_text'</span><span style="color: #009900;">&#41;</span>.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\xml\advanced_preferences.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'summaryOn'</span> with value <span style="color: #0000ff;">'@string/summary_on_advanced_toggle_preference'</span><span style="color: #009900;">&#41;</span>.
<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span>09<span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span> <span style="color: #339933;">-</span> ApiDemos<span style="color: #009900;">&#93;</span> D<span style="color: #339933;">:</span>\Android\android<span style="color: #339933;">-</span>sdk<span style="color: #339933;">-</span>windows\platforms\android<span style="color: #339933;">-</span><span style="color: #cc66cc;">4</span>\samples\ApiDemos\res\xml\advanced_preferences.<span style="color: #006633;">xml</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span> error<span style="color: #339933;">:</span> <span style="color: #003399;">Error</span><span style="color: #339933;">:</span> No resource found that matches the given name <span style="color: #009900;">&#40;</span>at <span style="color: #0000ff;">'summaryOff'</span> with value <span style="color: #0000ff;">'@string/summary_off_advanced_toggle_preference'</span><span style="color: #009900;">&#41;</span>.</pre></td></tr></table></div>

<p>&nbsp;</p>
<p>一开始看到这个，居然有点不值所错了，于是上网搜索，发现遇到这个问题的人还真不[......]
<p class='read-more'><a href='http://blog.7xiaowu.cn/2011/09/15/1586.html'>查看全文&#8230;..</a></p>
<hr />
<a href=http://item.taobao.com/auction/item_detail.htm?item_num_id=6373342447 target="_blank" ><img src=http://blog.7xiaowu.cn/6855376.gif border=0 /></a>
<hr />
<p><small>© 暗黑游侠 - <a href="http://blog.7xiaowu.cn">游侠海外岛</a>, 2011. |
<a href="http://blog.7xiaowu.cn/2011/09/15/1586.html">原文链接</a> |
<a href="http://blog.7xiaowu.cn/2011/09/15/1586.html#comments">2 comments</a> |
收藏到：
<a href="http://del.icio.us/post?url=http://blog.7xiaowu.cn/2011/09/15/1586.html&title=导入ApiDemos项目报错的解决方法">del.icio.us</a>
<br/>
Post tags: <br/>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7xiaowu.cn/2011/09/15/1586.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

