title: Android Studio - Java Method Call getBytesFromFile() Fails
body: <p>I am using Android Studio and Oracle Java 8. I am trying to get all bytes from a file and pass them to a byte array. The code below acts like it does not see <code>import java.io.File;</code></p>
  
  <p>I get the error message:</p>
  
  <pre><code> cannot resolve method getBytesFromFile(java.io.File)
  </code></pre>
  
  <p>code</p>
  
  <pre><code>import java.io.File;
  
      // ...
  
      File path = new File(
          Environment.getExternalStorageDirectory().getAbsolutePath() 
              + "/zTest-Records/");
  
      path.mkdirs();
      try {
          recordingFile = File.createTempFile("recording", ".pcm", path); 
      } catch (IOException e) {
          throw new RuntimeException("Couldn't create pcm file", e);
      }
  
      // NOTE: The code below gives error message: cannot resolve method 'getBytesFromFile(java.io.File)'
      byte[] data = getBytesFromFile(recordingFile); 
  </code></pre>