title: Android compile error; Java plugin has been applied, not compatible with android
body: <p>So I've made a wearable application where I can control a robot-car with the buttons on screen with the MessageListenerService. After trying to build the project, I had some problems where it asked me to install "Android Support Repository" from the SDK, which I already had. I found another <a href="https://stackoverflow.com/questions/24620772/why-wont-android-support-libraries-work-in-my-project">similar problem on SO (link)</a>  which had a sort-of solution, but now it says </p>
  
  <blockquote>
    <p>"Error: The java Plugin has been applied, but it is not compatible with the Android Plugins"</p>
  </blockquote>
  
  <p>This is my build.gradle in my wearable module</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'java'
  
  
  sourceCompatibility = JavaVersion.VERSION_1_6   //these two lines
  targetCompatibility = JavaVersion.VERSION_1_6   //are the only ones that matter
  
  android {
      compileSdkVersion 20
      buildToolsVersion "20.0.0"
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_6
          targetCompatibility JavaVersion.VERSION_1_6
      }
  signingConfigs {
      release {
          keyAlias 'C:\\Users\\Riekelt\\coolie.jks'
          keyPassword 'cut-out'
          storeFile file('path/to/release.keystore')
          storePassword 'cut-out'
      }
  }
  
  defaultConfig {
      applicationId "robowheel.robond"
      minSdkVersion 20
      targetSdkVersion 20
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          runProguard false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          signingConfig signingConfigs.release
  
      }
  }
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.google.android.support:wearable:+'
  compile "com.android.support:support-v4:20.0.+"
  compile 'com.google.android.gms:play-services-wearable:+'
   //   compile 'com.google.android.gms:play-services-wearable:6.1.11'
  
  }
  </code></pre>
  
  <p>Anyone know what is the matter? Thanks in advancoi</p>