Closed JeanPSF closed 6 months ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.1. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
This has already been discussed a number of times: https://github.com/facebook/react-native/issues/36685#issuecomment-1492034118 https://github.com/facebook/react-native/issues/41310#issuecomment-1822624846
Solution: You need to increase the amount of memory that Gradle can use.
Also have you considered using Expo instead?
Changing to distributionUrl=https://services.gradle.org/distributions/gradle-8.5-bin.zip
worked. Changing memory settings as suggested did absolutely nothing for me.
Cheers mate, I was about to tear my hair out.
This was actually a more frustrating start than setting up a flutter dev environment on Arch. Impressive.
Gradle memory was not the problem. Which means this was not discussed a number of times, but since it is closed, there is no point in keep discussing.
I am glad i was able to help you @mrkesu
This has already been discussed a number of times: #36685 (comment) #41310 (comment)
Solution: You need to increase the amount of memory that Gradle can use.
Also have you considered using Expo instead?
Changing to
distributionUrl=https://services.gradle.org/distributions/gradle-8.5-bin.zip
worked. Changing memory settings as suggested did absolutely nothing for me.Cheers mate, I was about to tear my hair out.
This was actually a more frustrating start than setting up a flutter dev environment on Arch. Impressive.
worked for me too, thanks!
chiming in, this stupid shit is why im done with development. Trying to get my flutter project to build on android, ended up here. what works for someone else doesnt work for me, etc. stupid shit, makes me want to kms
Description
I tried to start a new project, on a clean computer and i gave up.
There is a gradle problem with the latest react native version in the date i am writing this, which the tutorial from the official website does not support and it is impossible to run the project on it, i had to waste 4 hours around the internet searching for how to fix even tho i did not change a single line of code and my enviroment according to react-native doctor was 100% (https://github.com/gradle/gradle/issues/27844#issuecomment-2078200254)
Solution: distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
I cleaned all my vscode configuration, installed all official plugins according to package.json (babel, react-native, eslint, react native esling, typescript, typescript eslint, eslint, prettier)
Added a settings.json and also configured my global and workspace setting according to multiple configurations found around the git issues and the formatting of the files simply do not work.
Whereas the formatting works perfect with reactjs, nextjs, nestjs, flutter, java, typescript and javascript files on any other project besides the react native.
It was a pain just to run the hello world project on the emulator and when it finally runs, i can't code because of configuration files unless i disable all the lints. It is extremelly frustrating (not even going to talk about the java configuration needed which i already knew it was going to be a pain, and honestly, nothing has improved from 2.5 years ago when i last worked with react native detecting the java and jdk configuration).
So, my suggestion is to improve, not sure how, the Enviroment Setup section (https://reactnative.dev/docs/environment-setup) so it helps people understand all the base configuration needed to properly run everything the starting project has to offer. Also, make the project configuration of the starting project a little smarter on the setup, so it warn developers on missing extensions or configuration (flutter does an awesome job on this aspect, just add a flutter project on a brand new computer with vscode, vscode will give you tons of modals to install everything you need).
Some good examples which has never failed me, neither on windows or on macbooks.
https://docs.flutter.dev/get-started/install/windows/mobile https://spring.io/quickstart https://docs.nestjs.com/ https://nextjs.org/docs/getting-started/installation
Steps to reproduce
React Native Version
0.74.0
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/facebook/react-native
Screenshots and Videos
No response