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
Command failed: gradlew.bat installDebug #5607
Comments
unrelated to react-navigation |
open your 'settings.grandler' file in the android folder change the '\' to '/' save the file run the command 'react-native run-android Sorry for my English translator. |
Thank you, aroldoandrade. |
Worked here. |
i didn't get it sorry can you guide me a little? |
@aroldoandrade do you mean settings.grandle instead of settings.grandler? I don't have a ' \ ' in my settings.grandle |
@PurnimaNaik I do not have ' \ ' either in my seettings.gradle. I do not know how to fix this error ..>< |
Please check my solution here: https://stackoverflow.com/questions/54776936/command-failed-gradlew-bat-installdebug/56062411#56062411 |
Perfect. Work for me. |
BUILD FAILED in 5s please answer this error |
Thanks man!! worked perfectly |
I don't find just "/" in settings.gradle |
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) This one |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Run this command chmod 755 android/gradlew from your root project directory Worked for me. |
I didn't find a single " \ " in my settings.gradle file, can some one guide me on this? |
Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 |
I also experience this error. error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installProdGoogleDebug -PreactNativeDevServerPort=8081 Integrating RN to exisiting app is very very hard and ive been doing testing for 2 weeks and havent even build it once. Need to convert everything to Kotlin DSL. I hope the core devs of RN able to fixed this and the compatibility to the latest android DSL. |
I install 'react-navigation' according to official documents developing Android on the window, however, when I run 'react-native run-android' ,problems as follows:
FAILURE: Build failed with an exception.
Where:
Settings file 'F:\myRNproject\android\settings.gradle' line: 3
What went wrong:
Could not compile settings file 'F:\myRNproject\android\settings.gradle'.
1 error
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
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Command failed: gradlew.bat installDebug
Error: Command failed: gradlew.bat installDebug
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at runOnAllDevices (F:\myRNproject\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
at buildAndRun (F:\myRNproject\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
at isPackagerRunning.then.result (F:\myRNproject\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
The text was updated successfully, but these errors were encountered: