title: Gradle error: configuration declares dependency which is not declared
body: <p>I'm making my first android wear app, but I can't get Android Studio working.
  First I got the error</p>
  
  <pre><code> "Project with path ':wear' could not be found in project ':mobile'. 
  </code></pre>
  
  <p>This was resolved by adding <code>"include ':wear"</code> in <code>settings.gradle</code>.<br>
  But then a new error occurs: </p>
  
  <pre><code>"Error:Module version Test2:mobile:unspecified, configuration 'wearApp' declares a dependency on configuration 'default' which is not declared in the module descriptor for Test2:wear:unspecified" .
  </code></pre>
  
  <p>What do I have to do to resolve that error?</p>
  
  <p>Just in case it's needed: here's <code>build.gradle</code>:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
      defaultConfig {
          applicationId "com.verbraeken.joost.test2"
          minSdkVersion 19
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      wearApp project(':wear')
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.1.1'
      compile 'com.google.android.gms:play-services:8.3.0'
      compile 'com.android.support:design:23.1.1'
  }
  </code></pre>
  
  <p>settings.gradle:</p>
  
  <pre><code>include ':mobile'
  include ':wear'
  </code></pre>