title: Android [string array] cannot be resolved or is not a field
body: <p>I'm getting an error about a string array (located in <code>strings.xml</code>) not being able to be resolved.</p>
  
  <p>I've done everything the internet says:</p>
  
  <ol>
  <li>Restarted Eclipse</li>
  <li>Deleted my R.java file inside the <code>gen</code> folder</li>
  <li>My <code>values</code> folder is still inside the <code>res</code> folder, not moved</li>
  <li>None of my XML files have erros</li>
  <li>Ran <code>Project -&gt; Clean</code></li>
  <li>I don't have <code>android.R</code> imported in my class.</li>
  <li>Checked the <code>R.java</code> class, it indeed doesn't have an <code>app_categories</code> property (my array's name)</li>
  </ol>
  
  <p>The relevant part of the XML:</p>
  
  <pre><code>&lt;string-array name="app_categories"&gt;
      &lt;item &gt;Cat 1&lt;/item&gt;
      &lt;item &gt;Cat 2&lt;/item&gt;
      &lt;item &gt;Cat 3&lt;/item&gt;
      &lt;item &gt;Cat 4&lt;/item&gt;
      &lt;item &gt;Cat 5&lt;/item&gt;
      &lt;item &gt;Cat 6&lt;/item&gt;
      &lt;item &gt;Cat 7&lt;/item&gt;
      &lt;item &gt;Cat 8&lt;/item&gt;
      &lt;item &gt;Cat 9&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>The Java code:</p>
  
  <pre><code>String[] categoryNames = getResources().getStringArray(R.string.app_categories);
  </code></pre>
  
  <p>All my other strings are visible. I have another array defined just like this one, and that one isn't visible either.</p>
  
  <p>Exact error below:</p>
  
  <pre><code>app_categories cannot be resolved or is not a field [class_name].java   [path]  line 45 Java Problem
  </code></pre>