Estou utilizando o Windows 10 e tenho um erro quando tento rodar o app no emulador do androido studio.
Aqui está a mensagem de erro que aparece quando executo o comando npx react-native run-android e o react native doctor que executei logo em seguida: error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: java.io.UncheckedIOException: Could not move temporary workspace (C:\Users\Enzo\Documents\Trabalhos-Projetos\Mobile\app\android.gradle\8.6\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a-6893bad8-b1d9-42fe-a193-0afc8d802769) to immutable location (C:\Users\Enzo\Documents\Trabalhos-Projetos\Mobile\app\android.gradle\8.6\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a) > Could not move temporary workspace (C:\Users\Enzo\Documents\Trabalhos-Projetos\Mobile\app\android.gradle\8.6\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a-6893bad8-b1d9-42fe-a193-0afc8d802769) to immutable location (C:\Users\Enzo\Documents\Trabalhos-Projetos\Mobile\app\android.gradle\8.6\dependencies-accessors\423f0288fa7dffe069445ffa4b72952b4629a15a) * 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 14s. info Run CLI with --verbose flag for more details.
C:\Users\Enzo\Documents\Trabalhos-Projetos\Mobile\app>npx @react-native-community/cli doctor Common ✓ Node.js - Required to execute JavaScript code ✓ npm - Required to install NPM dependencies ✓ Metro - Required for bundling the JavaScript code
Android ✓ Adb - Required to verify if the android device is attached correctly ✓ JDK - Required to compile Java code ✓ Android Studio - Required for building and installing your app on Android ✓ ANDROID_HOME - Environment variable that points to your Android SDK installation ✓ Gradlew - Build tool required for Android builds ✓ Android SDK - Required for building and installing your app on Android
Errors: 0 Warnings: 0
Executei o emulador pelo Android Studio antes mesmo de iniciar o projeto e não o fechei. Por favor, alguém sabe como posso resolver isso?