title: Android Studio 1.1.0 Gradle project sync failed Error importing a Gradle project on a OSX
body: <p>I just installed gradle in this folder:
  /Users/joanet/Development/gradle-2.3</p>
  
  <p>edit the file launchd.conf</p>
  
  <pre><code>sudo vim /etc/launchd.conf
  </code></pre>
  
  <p>to set the variable GRAILS_HOME</p>
  
  <pre><code>setenv GRAILS_HOME /Users/joanet/Development/gradle-2.3
  </code></pre>
  
  <p>then I've imported the project <a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox" rel="noreferrer">https://github.com/NordicSemiconductor/Android-nRF-Toolbox</a></p>
  
  <p>using File -> Import project</p>
  
  <p>but I got this error:
  <strong>Gradle project sync failed</strong> and <strong>Error: Configuration with name 'default' not found in Android Studio</strong></p>
  
  <p>I have tried this <a href="https://www.youtube.com/watch?v=8RwVvZtNTaM" rel="noreferrer">https://www.youtube.com/watch?v=8RwVvZtNTaM</a>
  but it has not worked</p>
  
  <p><img src="https://i.stack.imgur.com/mPJSK.jpg" alt="enter image description here"></p>
  
  <p>Here the file build.gradle:</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.1.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>and here /app/build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion '22.0.0'
      defaultConfig {
          applicationId "no.nordicsemi.android.nrftoolbox"
          minSdkVersion 18
          targetSdkVersion 22
          versionCode 30
          versionName "1.12.1"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.0.0'
      compile project(':..:DFULibrary:dfu')
      compile files('libs/achartengine-1.1.0.jar')
      compile files('libs/nrf-logger-v2.0.jar')
  }
  </code></pre>
  
  <p>here settings.gradle:</p>
  
  <pre><code>include ':app', '..:DFULibrary:dfu'
  </code></pre>
  
  <p>and here gradle-wrapper.properties:</p>
  
  <pre><code>#Wed Apr 10 15:27:10 PDT 2013
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
  
  
  // 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.1.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>