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 #29035

Closed
scarlehoff opened this issue Jun 2, 2020 · 7 comments
Closed
Labels
Needs: Triage 🔍 Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@scarlehoff
Copy link

scarlehoff commented Jun 2, 2020

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!

@dclipca
Copy link

dclipca commented Jul 19, 2020

I have the same behavior.

@amangoelfv
Copy link

any update ?

@soorajnraju
Copy link

I also faced the same issue

@safaiyeh
Copy link
Contributor

safaiyeh commented Sep 2, 2020

Hi @scarlehoff thank you for the issue!

I've bumped into this too 😅 pretty annoying. This issue board is for issues pertaining to React Native core items. Please file an issue with the CLI repo, they can better address this. Thanks!

https://github.com/react-native-community/cli

@BenHurMartins
Copy link

Faced same issue, almost rewrote all the project from scratch, thanks.

@janilamppu
Copy link

Encountered the same message. Had ” instead of " in AndroidManifest.xml. Spent a good while looking until I found this discussion. Thanks!

@joaorenatojr87
Copy link

Description

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

Indeed I got lost for a few minutes because of this. Thanks a lot!

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants