title: my npx react-native run-android build fails
body: <p>My colleague recently added <code>react-native-camera</code> to my project. I merged the code and when i run <code>npx react-native run-android</code> my build fails with:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not determine the dependencies of task ':app:preDebugBuild'.
  &gt; Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
     &gt; Could not resolve project :react-native-camera.
       Required by:
           project :app
        &gt; Cannot choose between the following variants of project :react-native-camera:
            - generalDebugRuntimeElements
            - mlkitDebugRuntimeElements
          All of them match the consumer attributes:
            - Variant 'generalDebugRuntimeElements' capability Rombot:react-native-camera:unspecified:
                - Unmatched attributes:
                    - Found com.android.build.api.attributes.VariantAttr 'generalDebug' but wasn't required.
                    - Found react-native-camera 'general' but wasn't required.
                - Compatible attributes:
                    - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
                    - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
                    - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
            - Variant 'mlkitDebugRuntimeElements' capability Rombot:react-native-camera:unspecified:
                - Unmatched attributes:
                    - Found com.android.build.api.attributes.VariantAttr 'mlkitDebug' but wasn't required.
                    - Found react-native-camera 'mlkit' but wasn't required.
                - Compatible attributes:
                    - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
                    - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
                    - Required org.gradle.usage 'java-runtime' and found compatible value 'java-runtime'.
  </code></pre>
  
  <p>I have tried to remove my node modules and then do a <code>npm install</code> but i still get the same error. Any help would be great. Thanks in advance.</p>