Task 'installDebug' not found in project ':app'. Some candidates are: 'installDevDebug', 'installQaDebug', 'installUaDebug'.

See original GitHub issue

React 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

  1. git clone from repo: https://github.com/ldco2016/NFIBEngage
  2. npm install
  3. react-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:

https://github.com/ldco2016/NFIBEngage

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:49 (4 by maintainers)

github_iconTop GitHub Comments

100reactions
ldco2016commented, Aug 9, 2019

Ahh, so is there a flag I need to add so that it runs installDevDebug or one of the other flavors?

By the way I just did a ./gradlew installDevDebug and that built successfully.

Ha! I just ran react-native run-android --variant=DevDebug and it also built successfully!

@dulmandakh , thank you for walking me through this. You shed light on some details I was not aware of.

62reactions
Developerusmancommented, Apr 20, 2020

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 😃

Read more comments on GitHub >

github_iconTop 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 >

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