title: Can not Resolve React Native Camera MLKit Dependencies
body: <p>My app builds fine on Android Studio, it runs fine with <code>react-native run-android</code> but when I try to generate the <code>.apk</code> it fails with <code>./gradlew assembleRelease</code> command. I get the following error.</p>
  
  <h1>Error Message</h1>
  
  <pre><code>* What went wrong:
  Could not determine the dependencies of task ':react-native-camera:compileMlkitReleaseAidl'.
  &gt; Could not resolve all task dependencies for configuration ':react-native-camera:mlkitReleaseCompileClasspath'.
     &gt; Could not find com.google.firebase:firebase-ml-vision:12.0.1.
       Required by:
           project :react-native-camera
     &gt; Could not find com.google.firebase:firebase-ml-vision-face-model:12.0.1.
       Required by:
           project :react-native-camera
  </code></pre>
  
  <h2>package.json</h2>
  
  <pre><code>    "react": "16.8.3",
      "react-native": "0.59.10",
      "react-native-camera": "^3.7.1",
      "react-native-image-picker": "^0.28.1",
      "react-native-qrcode-scanner": "^1.2.3",
  </code></pre>
  
  <h2>gradle properties</h2>
  
  <pre><code>classpath('com.android.tools.build:gradle:3.4.0') // FROM android/gradle.build
  distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip // FROM gradle-wrapper.properties
  </code></pre>
  
  <p>I have followed the installation instructions <a href="https://react-native-community.github.io/react-native-camera/docs/installation#android" rel="nofollow noreferrer">here</a> and followed GitHub links <a href="https://github.com/react-native-community/react-native-camera/issues/2150#issuecomment-476011915" rel="nofollow noreferrer">here</a> and <a href="https://github.com/react-native-community/react-native-camera/issues/2063" rel="nofollow noreferrer">here</a>. </p>
  
  <p>All have the same solution which I have completed, i.e. adding; </p>
  
  <h2>android/app/build.gradle</h2>
  
  <pre><code>android {
    defaultConfig {
      missingDimensionStrategy 'react-native-camera', 'general'
    }
  }
  </code></pre>
  
  <h2>Note</h2>
  
  <p>The issue is because android is looking for <code>mlkit</code> dependencies even when I have not opted for them. I think this is happening because I use <code>react-native-image-picker</code> and <code>react-native-qrcode-scanner</code> one of these packages is looking mlkit dependencies. But I don't know how to debug and fix it.</p>