Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong (or at least not descriptive) "error Android project not found" msg #1262

Closed
scarlehoff opened this issue Sep 2, 2020 · 1 comment · Fixed by #1270
Closed

Wrong (or at least not descriptive) "error Android project not found" msg #1262

scarlehoff opened this issue Sep 2, 2020 · 1 comment · Fixed by #1270

Comments

@scarlehoff
Copy link

Description

A badly formatted AndroidManifest file will make react-native run-android fail with the following message:

error Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard lo
cation (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location

It will be very useful to either point to the actual error or just say that it could not run for some reason without giving a wrong reason.

React Native version:

Binaries:
Node: 14.3.0 - /usr/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.14.5 - /usr/bin/npm
Watchman: 4.9.0 - /usr/bin/watchman
SDKs:
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2, 29.0.3
System Images: android-29 | Google APIs Intel x86 Atom
npmPackages:
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
react-native: 0.60.5

Steps To Reproduce

  1. Open android/app/src/main/AndroidManifest.xml
  2. Add some random mistakes
  3. Try to run react-native run-android

Great project and thank you very much for your hard work!

(originally put this issue in this repository: facebook/react-native#29035 but was told to bring it here!)

@thymikee
Copy link
Member

Yep, this would definitely use an improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants