question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:7

github_iconTop GitHub Comments

9reactions
joaorenatojr87commented, Oct 3, 2020

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!

0reactions
janilamppucommented, Sep 13, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong (or at least not descriptive) "error Android project not ...
Description A badly formatted AndroidManifest file will make react-native run-android fail with the following message: error Android project ...
Read more >
Android project not found. Maybe run react-native android first?
This error simply means you don't have 'android' and 'ios' folders in your root directory of ...
Read more >
Shrink, obfuscate, and optimize your app - Android Developers
Code shrinking (or tree-shaking): detects and safely removes unused classes, fields, methods, and attributes from your app and its library dependencies (making ...
Read more >
HTTP status and error codes for JSON | Cloud Storage
An HTTP status code value, without the textual description. Example values include: 400 (Bad Request), 401 (Unauthorized), and 404 (Not Found).
Read more >
Admin Authentication API Errors | Firebase - Google
The error message should contain the response from the Authentication ... auth/project-not-found, No Firebase project was found for the credential used to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found