title: flutter build failed. Android dependency 'androidx.core:core' has different version for the compile (1.0.0) and runtime (1.0.1) classpath
body: <p>I am trying to build my flutter app but it gives this error:</p>
  
  <blockquote>
    <p>Android dependency 'androidx.core:core' has different version for the
    compile (1.0.0) and runtime (1.0.1) classpath. You should manually set
    the same version via DependencyResolution</p>
  </blockquote>
  
  <p>here is my android/build.gradle file:</p>
  
  <pre><code>buildscript {
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.2.1'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = "${rootProject.buildDir}/${project.name}"
  }
  subprojects {
      project.evaluationDependsOn(':app')
      project.configurations.all {
      resolutionStrategy.eachDependency { details -&gt;
              if (details.requested.group == 'com.android.support'
                      &amp;&amp; !details.requested.name.contains('multidex') ) {
                  details.useVersion "28.0.0"
              }
          }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>