title: Execution failed for task ':app:preDebugBuild'.in Flutter
body: <blockquote>
    <p>Android dependency 'com.android.support:support-media-compat' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution </p>
  </blockquote>
  
  <p>I have added List of plugins in my flutter app</p>
  
  <pre><code>dependencies:
    flutter:
      sdk: flutter
    connectivity:
    rxdart:
    validate: ^1.7.0
    image_picker: ^0.4.10
    shared_preferences: "^0.4.2"
    firebase_auth: ^0.6.2+1
    google_sign_in:
  </code></pre>
  
  <blockquote>
    <p>Dart &amp; Flutter version : Dart 2.1.0-dev.3.1.flutter-760a9690c2</p>
  </blockquote>
  
  <p>This is my android app - gradle</p>
  
  <pre><code>def localProperties = new Properties()
  def localPropertiesFile = rootProject.file('local.properties')
  if (localPropertiesFile.exists()) {
      localPropertiesFile.withReader('UTF-8') { reader -&gt;
          localProperties.load(reader)
      }
  }
  
  def flutterRoot = localProperties.getProperty('flutter.sdk')
  if (flutterRoot == null) {
      throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  }
  
  apply plugin: 'com.android.application'
  apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  
  android {
      compileSdkVersion 27
  
      lintOptions {
          disable 'InvalidPackage'
      }
  
      defaultConfig {
          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
          applicationId "com.example.standardappstructure"
          minSdkVersion 16
          targetSdkVersion 27
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
  
      buildTypes {
          release {
              // TODO: Add your own signing config for the release build.
              // Signing with the debug keys for now, so `flutter run --release` works.
              signingConfig signingConfigs.debug
          }
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>Destribution Gradle version : </p>
  
  <pre><code>distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
  </code></pre>
  
  <p>Project level : gradle</p>
  
  <pre><code>buildscript {
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.0'
          classpath 'com.google.gms:google-services:4.0.1'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = "${rootProject.buildDir}/${project.name}"
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>If I am changing gradle classpath to</p>
  
  <pre><code> classpath 'com.android.tools.build:gradle:3.2.1'
  </code></pre>
  
  <p>Its showing me  </p>
  
  <blockquote>
    <p>Android dependency 'android.arch.lifecycle:runtime' has different version for the compile (1.0.0) and runtime (1.1.0) classpath. You should manually set the same version via DependencyResolution</p>
  </blockquote>