Created
June 25, 2022 11:28
-
-
Save Anderson-Andre-P/d0202a940f0604196b34883b4019ed92 to your computer and use it in GitHub Desktop.
Erro ao executar aplicação feita com react native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comando que usei para executar a aplicação: | |
```bash | |
npx react-native run-android | |
``` | |
Saída do terminal: | |
```bash | |
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. | |
Jetifier found 1162 file(s) to forward-jetify. Using 4 workers... | |
info Starting JS server... | |
/bin/sh: 1: /usr/lib/jvm/java-11-openjdk-amd64/platform-tools/adb: not found | |
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... | |
> Configure project :app | |
Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object: org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated. | |
> Configure project :expo | |
Using expo modules | |
- expo-application (4.1.0) | |
- expo-constants (13.1.1) | |
- expo-file-system (14.0.0) | |
- expo-font (10.1.0) | |
- expo-keep-awake (10.1.1) | |
- expo-modules-core (0.9.2) | |
- expo-splash-screen (0.15.1) | |
Checking the license for package SDK Patch Applier v4 in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package SDK Patch Applier v4 not accepted. | |
Checking the license for package Android Emulator in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package Android Emulator not accepted. | |
Checking the license for package Android SDK Platform-Tools in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package Android SDK Platform-Tools not accepted. | |
Checking the license for package Android SDK Tools in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package Android SDK Tools not accepted. | |
Checking the license for package Android SDK Build-Tools 30.0.2 in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package Android SDK Build-Tools 30.0.2 not accepted. | |
Checking the license for package Android SDK Platform 31 in /usr/lib/jvm/java-11-openjdk-amd64/licenses | |
Warning: License for package Android SDK Platform 31 not accepted. | |
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. | |
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. | |
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings | |
6 actionable tasks: 6 up-to-date | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. | |
> Failed to install the following Android SDK packages as some licences have not been accepted. | |
patcher;v4 SDK Patch Applier v4 | |
platform-tools Android SDK Platform-Tools | |
platforms;android-31 Android SDK Platform 31 | |
emulator Android Emulator | |
build-tools;30.0.2 Android SDK Build-Tools 30.0.2 | |
tools Android SDK Tools | |
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. | |
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html | |
Using Android SDK: /usr/lib/jvm/java-11-openjdk-amd64 | |
* 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 | |
error Failed to install the app. Please accept all necessary Android SDK licenses using Android SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses". | |
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. | |
> Failed to install the following Android SDK packages as some licences have not been accepted. | |
patcher;v4 SDK Patch Applier v4 | |
platform-tools Android SDK Platform-Tools | |
platforms;android-31 Android SDK Platform 31 | |
emulator Android Emulator | |
build-tools;30.0.2 Android SDK Build-Tools 30.0.2 | |
tools Android SDK Tools | |
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. | |
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html | |
Using Android SDK: /usr/lib/jvm/java-11-openjdk-amd64 | |
* 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 | |
at makeError (/home/andre/www/mySkills/node_modules/execa/index.js:174:9) | |
at /home/andre/www/mySkills/node_modules/execa/index.js:278:16 | |
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) | |
at async runOnAllDevices (/home/andre/www/mySkills/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5) | |
at async Command.handleAction (/home/andre/www/mySkills/node_modules/@react-native-community/cli/build/index.js:192:9) | |
info Run CLI with --verbose flag for more details. | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment