Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error while running latest version of react native in android. #2576

Open
Rajkretoss opened this issue Jan 6, 2025 · 2 comments
Open
Labels
question Further information is requested

Comments

@Rajkretoss
Copy link

info Installing the app...
8 actionable tasks: 2 executed, 6 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

  • Where:
    Settings file '/Users/kretoss/react-native/JHL1/android/settings.gradle' line: 3

  • What went wrong:
    A problem occurred evaluating settings 'android'.

  • 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 1s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where:
Settings file '/Users/kretoss/react-native/JHL1/android/settings.gradle' line: 3 * What went wrong:
A problem occurred evaluating settings 'android'. * 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 1s.
info Run CLI with --verbose flag for more details.

I am getting this error Pls help me to solve this.

React Native Version: - 0.76.5

@Rajkretoss Rajkretoss added the question Further information is requested label Jan 6, 2025
@szymonrybczak
Copy link
Collaborator

hey, this error is most probably related to your environment, could you please run npx react-native doctor?

@Rajkretoss
Copy link
Author

@szymonrybczak Hi, the Setup is already up to date. Not get any errors or warnings while running npx react-native doctor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants