title: Resource assembly failing
body: <p>I've been working on a personal project, but in the past few days builds haven't been updating my R.java. I'm not sure what could be causing it. I haven't seen any syntax errors in the XML resources, but the the one time it <em>did</em> work was when I generated it manually a couple of days ago (<code>app:generateDebugResources</code>), and at the time the only resource in the project was under res/raw, an HTML document. Since then I've written the bulk of what I need for the admittedly minimal functionality I'm implementing, and removed R.java in working to solve the problem. The only remaining thing Android Studio seems to be interested in complaining about is the <code>unrecognized symbol 'R'</code>. I feel like I've hit a wall; I'll be posting my XML as well as my build configuration and settings. I'm open to any suggestions as to why Gradle might be failing to package my resources, as well as constructive critique. In-process building is disabled. </p>
  
  <p>settings.gradle:</p>
  
  <pre><code>include 'app'
  //include 'nanohttpd'
  
  project(':app').projectDir = new File('app')
  //project(':nanohttpd').projectDir = new File('nanohttpd')
  </code></pre>
  
  <p>build.gradle:</p>
  
  <pre><code>apply plugin: 'java'
  
  buildscript {
      repositories {
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:2.1.2'
      }
  }
  
  project(':app') {
      dependencies {
      }
  }
  
  /*
  project(':nanohttpd') {
      dependencies {
      }
  }
  */
  </code></pre>
  
  <p>:app:build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 16
      buildToolsVersion "24.0.1"
  
      dependencies {
          compile fileTree(dir: 'libs', include: ['*.jar'])
          //compile project(':nanohttpd')
          compile group: 'commons-codec', 
                  name: 'commons-codec', version: '1.10'
          compile group: 'org.nanohttpd', 
                  name: 'nanohttpd', version: '2.3.0'
      }
  
      sourceSets {
          main {
              java {
                  srcDir 'src/java'
              }
              resources {
                  srcDir 'src/res'
              }
              manifest {
                  srcFile 'src/android-manifest.xml'
              }
          }
      }
  
     defaultConfig {
         minSdkVersion 16
         targetSdkVersion 16
         applicationId "site.wyrxce.httpclip"
     }
  
     buildTypes {
         release {
             minifyEnabled true
             //signingConfig signingConfigs.release
             proguardFile getDefaultProguardFile('proguard-android.txt')
         }
         debug {
             initWith release
             applicationIdSuffix ".debug"
             signingConfig null
             debuggable true
         }
     }
  }
  </code></pre>
  
  <p>src/res/xml/prefs_main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:key="PreferenceScreen_main"&gt;
  
      &lt;SwitchPreference
          android:key="SwitchPreference_runServer"
          android:defaultValue="false"/&gt;
  
      &lt;EditTextPreference
          android:key="EditTextPreference_hostPort"
          android:defaultValue="3939"
          android:numeric="integer"
          android:maxLength="5"/&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>src/res/values/strings.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;string name="bad_request"&gt;Unrecognized input&lt;/string&gt;
      &lt;string name="bad_passwd"&gt;Invalid credentials&lt;/string&gt;
      &lt;string name="internal_err"&gt;Internal server error&lt;/string&gt;
  
      &lt;string name="clipboard_desc"&gt;HTTPClip Input&lt;/string&gt;
  
      &lt;string name="toasttext_serverstarted"&gt;
              HTTPClip service now listening&lt;/string&gt;
      &lt;string name="toasttext_serverstopped"&gt;
              HTTPClip Service stopped&lt;/string&gt;
  
      &lt;string name="title_switchpreference_runserver"&gt;
              Run HTTPClip service&lt;/string&gt;"
  
      &lt;string name="title_edittextpreference_hostport"&gt;Host Port&lt;/string&gt;
      &lt;string name="summary_edittextpreference_hostport"&gt;
              Listening port for HTTP Daemon&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>