Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28480

Big error(s) during cmd's "react-native run-android" command

$
0
0

Si i've been trying to start learning react-native but i encoutered the following error during the execution of the project:

C:\WINDOWS\system32>cd projeto

C:\Windows\System32\projeto>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 6 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
> Task :app:mergeDebugResources FAILED
10 actionable tasks: 2 executed, 8 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> 8 exceptions were raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.



* 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 1m 15s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. 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'.
> 8 exceptions were raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.

  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  C:\Windows\System32\projeto\android\app\build\intermediates\res\merged\debug: error: directory does not exist.



* 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 1m 15s

    at checkExecSyncError (child_process.js:603:11)
    at execFileSync (child_process.js:621:15)
    at runOnAllDevices (C:\Windows\System32\projeto\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
    at buildAndRun (C:\Windows\System32\projeto\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
    at C:\Windows\System32\projeto\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Command.handleAction (C:\Windows\System32\projeto\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)

To clarify things:

1° I followed the installation tutorial in https://docs.rocketseat.dev/ambiente-react-native/android/windows
2° These are my PC specs https://imgur.com/a/jdcUMVd
3° I had at some point to rename my user folder because my name had "Not allowed characters", that is, accents

Also my apoligies for any grammatic mistakes and/or too big post, I've been trying to google this problem for 3 days now and i'm desperate.


Viewing all articles
Browse latest Browse all 28480

Trending Articles