title: Could not find com.google.firebase:firebase-ml-vision
body: <p>When I added flutter_camera_ml_vision to an existing project, I got the following error.</p>
  <pre><code>Execution failed for task ':app:checkDebugAarMetadata'.                 
  &gt; Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
     &gt; Could not find com.google.firebase:firebase-ml-vision:.            
       Required by:                                                       
           project :app &gt; project :firebase_ml_vision
  </code></pre>
  <p>I didn't know what caused it, so I copied the code (from the official website).
  After that, I tried to link firebase and added only flutter_camera_ml_vision, but I got the same error as above.</p>
  <p>The main.dart is the same as the URL above, and the other files that I changed are as follows.
  The version of flutter_camera_ml_vision is 3.0.1.
  As a supplement, the ./gradlew command succeeds.</p>
  <p>//android/app/src/main/AndroidManifest.xml</p>
  <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.example.association_firebase&quot;&gt;
     &lt;application
          android:label=&quot;association_firebase&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;&gt;
          &lt;activity
              android:name=&quot;.MainActivity&quot;
              android:launchMode=&quot;singleTop&quot;
              android:theme=&quot;@style/LaunchTheme&quot;
              android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode&quot;
              android:hardwareAccelerated=&quot;true&quot;
              android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
  
              &lt;meta-data
                android:name=&quot;io.flutter.embedding.android.NormalTheme&quot;
                android:resource=&quot;@style/NormalTheme&quot;
                /&gt;
  
              &lt;meta-data
                android:name=&quot;io.flutter.embedding.android.SplashScreenDrawable&quot;
                android:resource=&quot;@drawable/launch_background&quot;
                /&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;meta-data
              android:name=&quot;flutterEmbedding&quot;
              android:value=&quot;2&quot; /&gt;
          &lt;!-- add --&gt;
          &lt;meta-data
              android:name=&quot;com.google.firebase.ml.vision.DEPENDENCIES&quot;
              android:value=&quot;ocr&quot; /&gt;
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  <p>//android/app/build.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(&quot;Flutter SDK not found. Define location with flutter.sdk in the local.properties file.&quot;)
  }
  
  def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
      flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
      flutterVersionName = '1.0'
  }
  
  apply plugin: 'com.android.application'
  // add
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'kotlin-android'
  apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
  
  android {
      compileSdkVersion 30
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      defaultConfig {
          applicationId &quot;com.example.association_firebase&quot;
          minSdkVersion 21   // changed to 21
          targetSdkVersion 30
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
      }
  
      buildTypes {
          release {
              signingConfig signingConfigs.debug
          }
      }
      // add
      dependencies {
          api 'com.google.firebase:firebase-ml-vision-image-label-model:19.0.0'
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
      //add
      implementation platform('com.google.firebase:firebase-bom:28.0.1')
      //add
      implementation 'com.google.firebase:firebase-analytics'
  }
  </code></pre>
  <p>//android/build.gradle</p>
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.50'
      repositories {
          google()
          jcenter()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:4.1.0'
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
          //add
          classpath 'com.google.gms:google-services:4.3.8'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>