BUILD FAILED in 19s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform react-native-reanimated-65-jsc.aar (project :react-native-reanimated) to match attributes {artifactType=android-aar-metadata}. > Execution failed for JetifyTransform: C:\Users\Rahul\Desktop\lcorn\rb\node_modules\react-native-reanimated\android\react-native-reanimated-65-jsc.aar. > Transform's input file does not exist: C:\Users\Rahul\Desktop\lcorn\rb\node_modules\react-native-reanimated\android\react-native-reanimated-65-jsc.aar. (See https://issuetracker.google.com/issues/158753935) * Try: 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. * Get more help at https://help.gradle.org BUILD FAILED in 19s at makeError (C:\Users\Rahul\Desktop\lcorn\rb\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9) at C:\Users\Rahul\Desktop\lcorn\rb\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:94:5) at async runOnAllDevices (C:\Users\Rahul\Desktop\lcorn\rb\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:106:5) at async Command.handleAction (C:\Users\Rahul\Desktop\lcorn\rb\node_modules\@react-native-community\cli\build\index.js:186:9) info Run CLI with --verbose flag for more details. PS C:\Users\Rahul\Desktop\lcorn\rb> "react": "17.0.2", "react-native": "0.65.0",No creo que react-native-reanimated sea compatible con Hermes en Android con React Native 0.65.0. Pude arreglarlo eliminando react-native-reanimated porque no lo uso. Tal vez puedas eliminarlo o desactivar Hermes.
La instalación de react-native-reanimated@2.3.0-alpha.2 también lo soluciona.
Este problema se solucionó en la última versión (versión alfa).
yarn add react-native-reanimated@2.3.0-alpha.3Aquí está la lista de lanzamientos de versiones:https://www.npmjs.com/package/react-native-reanimated?activeTab=versions
Aún no se ha publicado la nueva actualización react-native-reanimated-65-jsc.aar.
Después de la instalación del paquete, vaya a la carpeta node_modules y busque react-native-reanimated. Navegue a Android y vea si algo que termina con 65 es visible... de lo contrario, no funcionará.
Opciones alternativas, [con downgrade a 0.64.2] funciona... pero la versión se reinicia después de la compilación.
Este es uno de los archivos clave que se actualizarán node_modules> react-native-reanimated> android> build.gradle para que funcione
Siga las instrucciones que se dan en el sitio
https://docs.swmansion.com/react-native-reanimated/docs/installation/
configure lo siguiente también enableHermes: verdadero .. No hay daño en configurarlo
Ahora sigue estos pasos
Ahora regrese a la carpeta node_modules y busque la carpeta 'react-native-reanimated' y cambie esto
artefactos.add("predeterminado", archivo("reaccionar-nativo-reanimado-${menor}.aar"))
a
artefactos.add("predeterminado", archivo("react-native-reanimated-64.aar"))
Ahora comience con su compilación... no debería ver el problema informado.
. Actualizar