Task 'installDebug' not found in project ':app'. Some candidates are: 'installDevDebug', 'installQaDebug', 'installUaDebug'.
See original GitHub issueReact Native version:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 195.18 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.10.1 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 27.0.3, 28.0.3
System Images: android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.5429.30.34.5452501
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Steps To Reproduce
- git clone from repo: https://github.com/ldco2016/NFIBEngage
npm installreact-native run-android
Describe what you expected to happen:
For the android version of the app to continue to build as before when running react-native run-android
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 4 years ago
- Comments:49 (4 by maintainers)
Top Results From Across the Web
'installDebug' not found in root project 'android' React Native
Install tasks · Open the react-native app's android folder in Android studio. · Select the app folder and click on Menu -> Build...
Read more >task 'installdebug' not found in project ':app'. some candidates ...
What went wrong: Task 'installDebug' not found in root project 'android'. Some candidates are: 'installDevDebug'. Try: Run gradlew tasks to get a list...
Read more >Task :app:installDebug FAILED | React Native Errors | Fixed!
reactnative #reactjs #android #reactnativeerrorserror Failed to install the app. Make sure you have an Android emulator running or a device ...
Read more >Task 'installDebug' not found in project ':app'. react native
If you want to build the project from the command line instead of android studio, you can just run ./gradlew installDevDebug from the...
Read more >Task 'Assembledevkerneldebug' Not Found In Project ':App'
Task 'installDebug' not found in project ':app'. Some candidates are: 'installDevDebug' 'installQaDebug' 'installUaDebug'. #25992.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahh, so is there a flag I need to add so that it runs
installDevDebugor one of the other flavors?By the way I just did a
./gradlew installDevDebugand that built successfully.Ha! I just ran
react-native run-android --variant=DevDebugand it also built successfully!@dulmandakh , thank you for walking me through this. You shed light on some details I was not aware of.
Hey there!
I have solved this problem You just need to make 1 file in Android Folder so
Go android folder
Make file local.properties
then just add this code in local.properties file:-
If MacBook then sdk.dir=/Users/username/Library/android/sdk
if Windows then sdk.dir=C:\Users\UserName\AppData\Local\Android\sdk
if Linux then sdk.dir = /home/USERNAME/Android/sdk
if you want to know what is your system USERNAME then just use command for Mac whoami
and then just rerun command react-native run-android
Thanks 😃