<?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>Horatio Caine&#039;s Blog &#187; warning</title>
	<atom:link href="http://hxcaine.com/blog/tag/warning/feed/" rel="self" type="application/rss+xml" />
	<link>http://hxcaine.com/blog</link>
	<description>A blog of life, ideas and code</description>
	<lastBuildDate>Thu, 19 Jun 2014 00:46:16 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>When Eclipse won’t generate/locate R.java</title>
		<link>http://hxcaine.com/blog/2010/12/30/when-eclipse-wont-generate-locate-r-java/</link>
		<comments>http://hxcaine.com/blog/2010/12/30/when-eclipse-wont-generate-locate-r-java/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 23:37:02 +0000</pubDate>
		<dc:creator><![CDATA[Horatio Caine]]></dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[adt]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[force]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[locate]]></category>
		<category><![CDATA[r]]></category>
		<category><![CDATA[r.java]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[warning]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://hxcaine.wordpress.com/?p=109</guid>
		<description><![CDATA[I&#8217;ve just come across a rather irritating habit of the ADT toolset for Eclipse and thought I&#8217;d share it. If you get a red line under &#8220;R&#8221; in a reference to a layout, string or id, (e.g. the &#8220;R&#8221; in R.layout.main) then your problem could be one of the following: You have &#8216;android.R&#8217; as an [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve just come across a rather irritating habit of the ADT toolset for Eclipse and thought I&#8217;d share it.</p>
<p>If you get a red line under &#8220;R&#8221; in a reference to a layout, string or id, (e.g. the &#8220;R&#8221; in R.layout.main) then your problem could be one of the following:</p>
<ul>
<li>You have &#8216;android.R&#8217; as an import in your java class. This should not be there, remove it</li>
<li>You need to &#8216;clean&#8217; your project by going to Project &gt; Clean on the Eclipse menu bar</li>
<li>You do not have Eclipse set to &#8216;Build Automatically&#8217;. Do this by going to Project in the menu bar and ticking &#8216;Build Automatically&#8217;</li>
</ul>
<p>My problem, however, was none of these. Eclipse just refused to generate R.java.</p>
<p>It turns out that if you have any errors in your xml files (strings.xml, layouts, etc.), then your R.java file will not be generated and you will not be told this is the reason.</p>
<p>Make sure any errors in your xml files are fixed and your R.java file should be generated automatically when you save.</p>
]]></content:encoded>
			<wfw:commentRss>http://hxcaine.com/blog/2010/12/30/when-eclipse-wont-generate-locate-r-java/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
