I have a simple React Native
application. I am attempting to test it on a virtual Android device by navigating to the project and running npm start -- --reset-cache
. After terminating the process, I enter the command react-native run-android
. Despite having an active Android device, I encounter the following error:
The development server returned a response error with code 404 URL: http://10.0.0.2:8081/index.bundle?platform=android&dev=true&minify=false Body... "Cannot find the entry file index.js in any of the roots:[\"c:\\projects\\HelloRN]"....
Despite having an index.js file in the root of the project, I continue to see this error even though Metro Bundler is running on port 8081. The version of React Native
being used is 0.51.0.