title: android - Execution failed for task ':app:compileDebugJavaWithJavac'
body: <p>New to Android Studio + Gradle.</p>
  
  <p>I'm trying to run my app from the command line using:</p>
  
  <pre><code>gradlew installDebug
  </code></pre>
  
  <p>The app gets installed on my device only when I execute that command when Studio just got opened and do that initial syncing/building thing.</p>
  
  <p>Whenever I modified my code, and try to run that command again, the build fails and shows this error:</p>
  
  <pre><code>Execution failed for task ':app:compileDebugJavaWithJavac'
  &gt; Could not find tools.jar
  </code></pre>
  
  <p>How do I solve this problem? Thanks in advance.</p>