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.

Android project not found

See original GitHub issue

Description

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.

Version

0.68.2

Output of npx react-native info

System: OS: Windows 10 10.0.19042 CPU: (6) x64 Intel® Core™ i5-8400 CPU @ 2.80GHz Memory: 6.21 GB / 15.88 GB Binaries: Node: 14.19.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.15 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.16 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 3.4.0.0 AI-183.6156.11.34.5522156 Visual Studio: 17.1.32319.34 (Visual Studio Community 2022) Languages: Java: 1.8.0_312 - C:\Program Files\OpenJDK\openjdk-8u312-b07\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

bug

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:80

github_iconTop GitHub Comments

28reactions
enescangcommented, May 14, 2022

Hello everyone. I check this https://github.com/react-native-community/cli/issues/1608#issuecomment-1126581017 and solved with:

  1. Clear node_modules
  2. add this to package.json "resolutions": { "glob": "7.2.0" }
  3. Reinstall node_modules with npm install

And you may vote this result on stackoverflow https://stackoverflow.com/questions/72239857/react-native-android-project-not-found/72241166#72241166

If this is not work please install glob with npm i glob@7.2.0

8reactions
VeoScriptcommented, May 14, 2022

Is this bug in react-native? Is Facebook will solve it or do we have to find a solution?

Mark Zuckerberg’s birthday today, maybe tomorrow he’ll fix this problem ✌️

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Android project not found Are you sure this is a React Native ...
The error is noted as ” Android project not found. Are you sure this is a React Native project? If your Android files...
Read more >
Known issues with Android Studio and Android Gradle Plugin
Compilation errors may arise in Kotlin MPP code due to missing symbols. ... This section describes known issues related to project configuration and...
Read more >
react-native run-android issue – error Android project not found
I create a react native app in C9. Now, I want to develop this app on my local machine with android settings. I...
Read more >
npx react-native run-android build failed - You.com
What went wrong: Task 'installDebug' not found in project ':app'. * Try: Run gradlew tasks to get a list of available tasks. Run...
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