title: Android import java.nio.file.Files; cannot be resolved
body: <p>I am trying out the new Gmail API and the samples use the classes in the java.nio.file package, e.i. <code>Files</code> and <code>FileSystems</code>.</p>
  
  <p>These classes was introduced in Java jdk 1.7 for the record, and since I am running jdk 1.7.0_65 in my Android app I have no idea why Android Studio cannot find these classes. </p>
  
  <p>The imports are:</p>
  
  <pre><code>import java.nio.file.FileSystems;
  import java.nio.file.Files;
  </code></pre>
  
  <p>My build.gradle file of course tells the system to use v. 1.7 like this</p>
  
  <pre><code>android {
      compileSdkVersion 19
      buildToolsVersion '20'
      ...
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
  }
  </code></pre>
  
  <p>I am pointing to the right directory of the jdk:</p>
  
  <p><img src="https://i.stack.imgur.com/2S0HC.jpg" alt="enter image description here"></p>
  
  <p>The jdk is listed in the External Libraries section:</p>
  
  <p><img src="https://i.stack.imgur.com/eUPag.jpg" alt="enter image description here"></p>
  
  <p>And if I browse through the Java files I can even find java.nio.file.Files and .FileSystems:</p>
  
  <p><img src="https://i.stack.imgur.com/FvxXG.jpg" alt="enter image description here"></p>
  
  <p><strong>Now, what the **** is going on!? From my understanding I am doing everything right here, any suggestions?</strong></p>