skip to Main Content

Print of terminal

I am building a mobile app with react native and typescript, until now it was working fine, but yesterday I tried to start it up with react-native run-android and it just doesn’t go through this "Evaluating Settings" step, once I tried to let it running and it was 40 minutes in this step, it also happens for any other command from gradle like ./gradlew clean

I tried removing android/.gradle deleting node_modules, yarn.lock and Users/user/.gradle and starting it up again but it did not help.

2

Answers


  1. Chosen as BEST ANSWER

    Solved it. After trying lots of times to remove cache from gradle and yarn and not working I realized the problem was likely to be on some code or configuration I changed. I looked in git history for a commit in which the project was working and rolled back to it to see if I can still run it and it worked, then I found what was the exactly the commit that broke the build and looked for the files changed in it, I found out that I had accidentaly updated react-native version from ^0.74.2 to ^0.75.1 I also had added redundant types for react navigation and removed it (although I believe it had nothing to do with it). After rolling back the version, deleting node_modules, yarn.lock, android/.gradle, Users/user/.gradle and running it all again it worked. Its weird that gradle does not give any error messages for using the incorret react-native version, I also ran npx react-native doctor and did not showed anything wrong with my setup.


  2. You probably just need a stronger PC to run it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search