Solucionar error Could not find com.google.android:cameraview:1.0.0. para la librería expo-camera con React Native y Expo

Tiempo de lectura: < 1 minuto

Os traigo la solución para el error:

Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath’.
Could not find com.google.android:cameraview:1.0.0.
Required by:
project :app > project :expo > project :expo-camera

Run with –stacktrace option to get the stack trace.
Run with –info or –debug option to get more log output.
Run with –scan to get full insights.

Tenemos que ir al archivo Android > build.gradle y añadir dentro de allprojects { repositories {:

allprojects {

....

 repositories {

maven {
             // expo-cameracom.google.android:cameraview
             url "$rootDir/../node_modules/expo-camera/android/maven"
            }

Deja un comentario