title: Can't build project, problems with gradle?
body: <p>I'm trying to switch from eclipse to android studio for my android development.
  However, I still haven't found the right way to import my existing project.
  I don't know if it is important: but I'm using a mac</p>
  
  <p>I did the export step in eclipse, imported this gradle build in Android Studio, but when I try to build my project, it gives me this error:</p>
  
  <pre><code>Gradle: 
  FAILURE: Could not determine which tasks to execute.
  * What went wrong:
  Task 'assembleDebug' not found in project ':ProjectName'.
  * Try:
  Run gradle tasks to get a list of available tasks.
  
  Could not execute build using Gradle installation '/Users/&lt;username&gt;/Development/Build/gradle-1.6'.
  </code></pre>
  
  <p>This is the build.gradle file that eclipse gave me:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4.+'
      }
  }
  apply plugin: 'android'
  
  dependencies {
      compile project(':ProjectName:library:ActionBarSherlock')
      compile project(':ProjectName:library:facebook')
      compile files('../../../../../../../ProjectName/libs/gcm.jar')
      compile files('../../../../../../../ProjectName/libs/libGoogleAnalyticsV2.jar')
      compile files('../../../../../../../ProjectName/libs/commons-lang3-3.1.jar')
      compile files('../../../../../../../ProjectName/libs/actionbarsherlock-plugin-maps-4.2.0.jar')
      compile files('../../../../../../../NiteOwl/libs/volley.jar')
      compile project(':ProjectName:library:PullToRefresh')
      compile project(':ProjectName:library:google-play-services_lib')
  }
  
      android {
      compileSdkVersion 17
      buildToolsVersion "17"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 17
      }
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
          }
  
          instrumentTest.setRoot('tests')
      }
  }
  </code></pre>
  
  <p>I've seen a lot of possible solutions, but none of them worked for me, any idea what I'm doing wrong?</p>
  
  <p>The path to the project has no spaces in it</p>
  
  <p>jar libraries => ProjectName/libs</p>
  
  <p>android libraries => ProjectName/library</p>
  
  <p>all of this was working in eclipse</p>