title: How to remove an alien element from R.java?
body: <p>I use IDEA's intellisense automatically (<code>Alt</code>+<code>Enter</code>) as I am so used to know which option it will offer. So this morning I was renaming some XML id (<code>LinearLayout</code>'s id) and (probably) somehow generated an entry directly into <code>R.java</code> file. Later I wanted to compile the project, but I keep getting error: <code>&lt;identifier&gt; expected</code>. The <code>R.java</code> looks like this now</p>
  
  <pre><code>public static final class id {
      public static final int @+id/linearLayoutMessages=0x7f080012;
      //... other IDs
  </code></pre>
  
  <p>Obviously the torn in the file is the prefix <em>@+id/</em>. </p>
  
  <p>I tried removing <code>R.java</code> and rebuilding the project, but it did not help. The same error and the same entry keeps regenerating itself. I can solve this (temporarily) by manually removing this entry from <code>R.java</code>, but I get this message each time I try to rebuild the project. </p>
  
  <p>Any ideas why this strange entry remains persistent even after deleting <code>R.java</code>? The version of IDEA is 11. </p>