I started a new react native project in IDX. Initially, everything went smooth and I could see the Android Expo simulator and the example app opened.
Then I ran the ‘reset-project’ command using npm and then when I tried the emulator, it didn’t start up. The existing emulator would not Hard Restart and showed ‘Cannot connect to Metro’ message.
Then when I tried restarting the server and typing in ‘a’ to start the Android emulator, an error message was displayed: ‘An error occurred while launching the application. Error while executing command ‘/home/user/buses/node_modules/.bin/react-native run-android --no-packager’ (error code 101)
Android project not found. (error code 1203) (error code 303)’ and this popup appeared.