title: Gradle Build Fails with "Could not read path" When Instant Run is Disabled
body: <p><strong>My Environment:</strong> </p>
  
  <pre><code>Android Studio 2.1.2
  Android Gradle Plugin v2.1.2
  Mac OSX v10.11.5
  </code></pre>
  
  <p>Up until now, I have turned off Instant Run when calling "Build=>clean Project" and running my project.  The reason I have turned off Instant Run is because of <a href="https://stackoverflow.com/questions/36802588/error-while-launching-activity">this</a> and <a href="https://stackoverflow.com/questions/36530648/session-app-error-launching-activity">this</a> issue.
  However, recently, I started running into this problem every time I try to clean my project:</p>
  
  <pre><code>Error:Could not read path  
  &lt;path/to/app/module&gt;/build/intermediates/classes/release/com/&lt;package/name&gt;/R$layout.class'.  
  </code></pre>
  
  <p>The interesting thing about this is that the specific file path that it can't find appears to be random.  For example, if I call Gradle sync and then clean again, it will fail with this error:</p>
  
  <pre><code>Error:Could not read path  
  &lt;path/to/app/module&gt;/build/intermediates/classes/release/com/&lt;different/package/name&gt;$ProductCategoryAdapter$1.class'.`
  </code></pre>
  
  <p><strong>Steps to Reproduce:</strong></p>
  
  <ol>
  <li>Preferences=> Build,Exec,Deploy => Instant Run</li>
  <li>uncheck "enable Instant Run...", "Restart activity....", "Show instant run...."</li>
  <li>Tap "Apply", then "OK", then do a Gradle Sync by tapping gradle sync icon in AStudio</li>
  <li>"Build=>clean Project"</li>
  </ol>
  
  <p><strong>Workaround</strong></p>
  
  <p>The current workaround is to re-enable Instant Run.  However, that will also bring back the reason for turning it off.</p>
  
  <p><strong>Questions</strong></p>
  
  <p>1) Has anyone else encountered this problem?</p>
  
  <p>2) Are there any other possible workarounds or even better yet, a solution to this problem?</p>