-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 :ReactNative:Unexpected empty result of running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory. :ReactNative:Running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory failed. #27443
Comments
System: please help :( |
Hello siddiqaQ , what you do to solve this problem?! |
@rickhanlonii what was the reason for closing this? Any information that could allow us to trace the cause of the issue will be greatly appreciated. |
I faced the same problem. |
I had this same problem. In my case I was using an old version of npm (3.10.3) and all I did was upgrade to 6.12.1. It worked for me. |
Thanks everyone for the help! I closed this issue because it didn’t fit the template or include a meaningful description. The comment must have got lost in the process sorry about that. |
I am also facing the same problem . Is there any work around? |
On my side issue 838 allowed me to solve the issue. I uninstalled and reinstalled globally:
Don't be too harsh if it doesn't work for you ;) Also, I am not 100% it helps in this case, but the interesting read that led me to the solution was issue #804, because at core it seems to be related to the build script not calling npx from the root React Native directory. |
If anyone is still seeing this issue, please submit a new issue that conforms to the bug template and we'll take a look. |
I am also facing same issue...
|
ERROR: Command |
@rickhanlonii I've created #27707 using a template. Let me know if you nee more information. |
This was helpful. Thanks |
Check if local.properties file is missing. |
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. FAILURE: Build failed with an exception.
BUILD FAILED in 17s
|
same problem here |
please check your devices connected Or USB debugging on ( causes of a lot of time ) |
I checked bro I even listed the device using adb devices comand |
Facing the same problem 😞 |
Same |
same |
This appears to have been a bug in the react-native cli which has been fixed in the latest version, see: react-native-community/cli#804 |
the same bug I am also facing |
the same bug .. I ever have seen |
same |
I'm facing the same bug too after moving to react native 0.62 |
As mentioned in #27707, this issue was in the react-native cli and should be fixed. If you're still seeing this, please comment or open a new issue in the CLI. Going to lock this so that the +1 comments don't burry this message. |
FAILURE: Build failed with an exception.
Where:
Script 'C:\react\zinia\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 170
What went wrong:
A problem occurred evaluating script.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 3s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
:ReactNative:Unexpected empty result of running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory.
:ReactNative:Running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\react\zinia\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 170
What went wrong:
A problem occurred evaluating script.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 3s
React Native version:
Steps To Reproduce
The text was updated successfully, but these errors were encountered: