Solved: React Native Android Project Not Found

When working on React native, if you have seen the “React Native Android Project Not Found”error, you are not alone, there are many developers who are facing the same issue. let see the reason and solution how we can fix it.

When I am using React Native, below error is seen:

error Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

How to Fix the “React Native Android Project Not Found” Error

To fix the Issue, follow the below Steps:

Step 1: Go to the “node_modules” Folder

Step 2: Find “glob”

Step 3: Open the “common.js” file

Step 4: You would be able to see the below parameters

options.allowWindowsEscape = true

Change the “options.allowWindowsEscape = true” True value to “False”.

It should be able to solve the “React Native Android Project Not Found” Error.

Conclusion

To Solve the “React Native Android Project Not Found” Error, First, Go to the “node_modules” Folder, Find “glob”, Open the “common.js” file, In options.allowWindowsEscape = true parameter, change the value to “False”.