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.

Task 'installDebug' not found in root project ' '.

See original GitHub issue

Description

Hi, I am new to react/react-native and I have a problem that I’ve been trying to fix for a week. I’ve created a react native app with the react-native-cli with the cmd: react-native init myApp. After my app gets created automatically. I run this command: react-native run-android and I get this error:

runandroidfail

so then to try and fix that I go into the android directory and use the cmd: gradlew :app:installDebug and it builds successfully:

buildsuccessgradle

then I go back into my project directory and run-android again. I expected that this app would run on my android virtual device but I get the same error:

runandroidagainfail

So at this point I know there is something seriously wrong so I go back into the android directory and type in this cmd: gradlew build and this fails at the bundleReleaseJsAndAssets:

gradlebuildfail

I don’t know if this is the problem but something is not working correctly. Like I said I’ve been trying to fix this for a week and looked at several forums to fix this. I found a issue that has the same build errors as me except this was 2 years ago and he is building the assembleRelease for android with a different version of react: #4124 .

Reproduction Steps and Sample Code

If you can get my React-Native app running on your Windows or even your mac let me know what you did. Here is the link to my frustrating app: https://github.com/CoLagon/React-Native-myApp

Additional Information

  • React Native version: 0.42.3
  • Platform: Android
  • Development Operating System: Windows 10
  • Dev tools: [Android SDK 23.0.1 - 23.0.3]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
colelogancommented, Apr 3, 2017

@Air-Miha

HEYYYYYYYYYYYYY!!! I FIXXED IT!!! OMG. I’m so happy. Thank you so much you inspired me to think and fix the problem. so when you said that it might be my environment, I scratched my head was thinking about my environment variables and things I did to my computer. So about a month ago I went into my registry editor (regedit) and made a new string value in HKEY_CURRENT_USER\Software\Microsoft\Command Processor called Autorun so when I open up my command prompt my cmd path would be set to my hard drive (C:). So I removed that and it work! That what was wrong with my computer that entire time. so I guess I learned today to never mess with the regedit. I seriously didn’t think that was the problem but it was thank god I removed that.

0reactions
armanbabaicommented, Apr 25, 2018

@colelogan thank you a lot. work it. i remove autorun from registry and work!

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 ... - GitHub
i open Android Studio, then clean and rebuild. I am not sure would it work after clean and rebuild. i also did and...
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 '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 'installDebug' not found in project ':app' when we used ...
Version of react-native :"0.63.4". whenever i added below code in build.gradle inside andorid/app build.gradle file. ` android { compileSdkVersion rootProject.
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