DEV Community

[Comment from a deleted post]
Collapse
 
jochercoles profile image
jochercoles • Edited

Thank you Hammad for your help, I did that you explained to me in the last message. But now return this errors, may be you can help me.

C:\Proyectos\PrimerMobile>react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...

Task :app:mergeDebugResources FAILED
9 actionable tasks: 2 executed, 7 up-to-date

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

    Could not read path 'C:\Proyectos\PrimerMobile\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-af'.

  • 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 help.gradle.org

BUILD FAILED in 54s

error Failed to install the app. Make sure you have the Android development environment set up: facebook.github.io/react-native/do.... Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

    Could not read path 'C:\Proyectos\PrimerMobile\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-af'.

  • 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 help.gradle.org

BUILD FAILED in 54s

at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:\Proyectos\PrimerMobile\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (C:\Proyectos\PrimerMobile\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)

Thank you so much