Versão node: v16.15.1 Android Studio Chipmunk | 2021.2.1
Ao executar o npx react-native run-android
ele me da o seguinte erro:
npm WARN config global --global
, --local
are deprecated. Use --location=global
instead.
info JS server already running.
'"adb"' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds
.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Task :react-native-gradle-plugin:compileKotlin
FAILURE: Build failed with an exception.
Where: Build file 'C:\Users\Usu�rio\Desktop\programa��o\ReactNative\Alura\orgs\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'. Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
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 21s
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.
Where: Build file 'C:\Users\Usu�rio\Desktop\programa��o\ReactNative\Alura\orgs\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'. Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
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
info Run CLI with --verbose flag for more details.
Desinstalei o Java, node, android studio e os emuladores/jdk, mas o erro persiste.
Criei novamente o projeto fiz os passos de instalação de react Native mas nao obtive sucesso.
Uma pergunta extra para o problema, consigo utilizar o telefone via usb como emulador?