title: Android Studio 1.4 - Task 'assemble' not found in root project 'bin'
body: <p>I upgraded yesterday to Android Studio 1.4. Before the upgrade I could run a Gradle assemble under Run/Debug configurations with "assemble" in the tasks field.</p>
  
  <p>Now, I am getting the following error:</p>
  
  <blockquote>
    <p>3:22:48 PM: Executing external task 'assemble'...</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong:
    Task 'assemble' not found in root project 'bin'.</p></li>
    <li><p>Try:
    Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
    </ul>
    
    <p>BUILD FAILED</p>
    
    <p>Total time: 0.095 secs
    Task 'assemble' not found in root project 'bin'.
    3:22:48 PM: External task execution finished 'assemble'.</p>
  </blockquote>
  
  <p>I tried adding "task assemble{}" to the root build.gradle file according to <a href="https://stackoverflow.com/questions/25326522/android-studio-0-8-task-assemble-not-found-in-root-project">this StackOverflow question</a> and <a href="https://code.google.com/p/android/issues/detail?id=57229" rel="nofollow noreferrer">Google Code forums</a>. This did not work.</p>
  
  <p>I also tried removing </p>
  
  <p><code>&lt;component name="FacetManager"&gt; 
     ... &lt;!-- remove all in this node 
  &lt;/component&gt;</code>  </p>
  
  <p>according to <a href="https://stackoverflow.com/a/21365065/3919545">this answer on Stack Overflow.</a> My root build.gradle is the following:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.3.0'
  
       // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
      }
  
  }
  
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>I also tried importing the files as a new Android Studio project. I was able to generate an app-debug.apk by running it through the emulator though. I also tried cloning my Bitbucket repository to the last committed version from yesterday to import into Android Studio and that didn't work either. I'm fairly new to Android things and am stumped with this. Any help is appreciated.</p>
  
  <p><strong>EDIT--</strong>
  I solved the problem, and am posting so it may help someone else.
  I was able to assemble from the command line. I'm on Windows, so the command was:</p>
  
  <blockquote>
    <p>gradlew.bat assembleDebug</p>
  </blockquote>
  
  <p>This worked.
  I completely exited Android Studio. I'm not sure if this step is important or not. I then opened the Gradle sidebar and it was empty. I hit the refresh button and suddenly the Gradle tasks showed up again and was able to run the Gradle APK assemble from the Run option again.</p>