facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.24k stars 626 forks source link

React native unknown bug: Java issue, Metro issue #1342

Open JulianHSC opened 2 months ago

JulianHSC commented 2 months ago

I'm using Windows 11. Every now and again, my React native breaksdown for unknown reasons. When I run the "npx react-native run-android", it says Metro not found or not funning. The Java sdk is also not detected. I know this is not a configuration problem because it worked perfectly the previous day. No changes was made to my computer system. I have checked by making sure all paths in system environment is correct. The screenshots I have is the only evidence of the problem. Stackoverflow and lots of google searches and multiple computer restarts were done but none of it works. Does anyone else have this problem? It can suddenly be so that Metro works after the computer is restarted but java still remains as not installed.

Android SDK not found

Metro not found