title: Intellij not recognising drawable folders for android
body: <p>I'm trying to set up a splash screen for PhoneGap in Intellij Community edition 11.12.</p>
  
  <p>The problem is that Intellij gives me the error 'cannot resolve symbol splash' - for some reason it's not picking up R.drawable.splash - I've rebuilt the project and deleted the generated files, but that doesn't help.</p>
  
  <p>I have the following folder structure (looks correct from <a href="http://developer.android.com/guide/topics/resources/providing-resources.html" rel="nofollow">http://developer.android.com/guide/topics/resources/providing-resources.html</a>)</p>
  
  <pre><code>-res
  --drawable
  ----splash.png
  --drawable-hdpi
  ----splash.png
  --drawable-mdpi
  ----splash.png
  --drawable-ldpi
  ----splash.png
  --drawable-xhdpi
  ----splash.png
  </code></pre>
  
  <p>And I'm trying to set the splash screen with:</p>
  
  <pre><code>package com.illbeintouch.mobile;
  
  import android.R;
  import android.os.Bundle;
  import org.apache.cordova.DroidGap;
  
  public class MyActivity extends DroidGap
  {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
  
          super.setIntegerProperty("splashscreen", R.drawable.splash);
          super.loadUrl("file:///android_asset/www/index.html", 5000);
      }
  }
  </code></pre>
  
  <p>I don't know if it makes a difference, but I'm using 1.7 Java SDK, and android 2.3.3 as the target platform.</p>
  
  <p>If you can help out I'd be super grateful - I've spent all morning trying to sort this thing out!!!</p>