Created
April 6, 2023 18:20
-
-
Save lunaleaps/21f9b72f4a1e617a8fb04a27c00e527b to your computer and use it in GitHub Desktop.
npx react-native run-android
This file contains 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
~/BigIntTest via v16.19.0 via 💎 v2.7.4 | |
❯ npx react-native run-android | |
warn Multiple Podfiles were found: ios/Podfile,vendor/bundle/ruby/2.7.0/gems/cocoapods-core-1.12.0/lib/cocoapods-core/Podfile. Choosing ios/Podfile automatically. If you would like to select a different one, you can configure it via "project.ios.sourceDir". You can learn more about it here: https://github.com/react-native-community/cli/blob/master/docs/configuration.md | |
info Starting JS server... | |
info Installing the app... | |
5 actionable tasks: 1 executed, 4 up-to-date | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/luwe/BigIntTest/android/app/build.gradle' line: 1 | |
* What went wrong: | |
A problem occurred evaluating project ':app'. | |
> Failed to apply plugin 'com.android.internal.application'. | |
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. | |
Your current JDK is located in /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre | |
You can try some of the following options: | |
- changing the IDE settings. | |
- changing the JAVA_HOME environment variable. | |
- changing `org.gradle.java.home` in `gradle.properties`. | |
* 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. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. | |
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 | |
FAILURE: Build failed with an exception. | |
* Where: | |
Build file '/Users/luwe/BigIntTest/android/app/build.gradle' line: 1 | |
* What went wrong: | |
A problem occurred evaluating project ':app'. | |
> Failed to apply plugin 'com.android.internal.application'. | |
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. | |
Your current JDK is located in /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre | |
You can try some of the following options: | |
- changing the IDE settings. | |
- changing the JAVA_HOME environment variable. | |
- changing `org.gradle.java.home` in `gradle.properties`. | |
* 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 (/Users/luwe/BigIntTest/node_modules/execa/index.js:174:9) | |
at /Users/luwe/BigIntTest/node_modules/execa/index.js:278:16 | |
at processTicksAndRejections (node:internal/process/task_queues:96:5) | |
at async runOnAllDevices (/Users/luwe/BigIntTest/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7) | |
at async Command.handleAction (/Users/luwe/BigIntTest/node_modules/@react-native-community/cli/build/index.js:108: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