react-native** run-android command in Windows shows installation fail error.
OS: Windows 10
Node: 8.9.4
Yarn: Not Found
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5014246
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4
I have seem number of similar issues, but all says to use chmod 755 but this does not work in Windows. I wonder how to resolve this error in my system. I have checked adb devices and it shows the emulator and also the mobile device when running or connected. Both have Developer setting enabled.
I am getting following error precisely:
C:\Node_React_Apps\my-app-v2>react-native run-android
Scanning folders for symlinks in C:\Node_React_Apps\news-app-v2\node_modules (66ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
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`
There is no such file in my my-app-v2/android/ directory as mentioned gradlew.bat, I also do not sure how to find any bug/log related to this issue which could help me to resolve the issue.
I have detached my expo application, and only want to run it like this because I have integrated react-native-youtube library which requires detaching.
Can you run react-native info and edit your issue to include these results under the Environment section?
If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.
There may be a permission issue if you are using Linux/Ubuntu
Change permission of android/gradlew to 755
Here is a command
runchmod 755 android/gradlewinside your app root folder
i am using windows having same issue, can't run the chmod 755 android/gradlew command any solution
thank you it worked for me in mac
There is still an issue.. I encounter this every time I run npm audit fix.. After npm install I dont have this issue but as soon as I run npm audit fix it breaks
Anybody on Windows can reproduce this on latest React Native version (0.59.1)? npm audit fix changing permissions is clearly an npm bug.
Closing for now, but happy to reopen if this is still a problem.
So many people getting the error again which means they didn't consider the "app-root folder" .
I am facing the same issue in windows 10 react native.
Have this issue on windows still. Anyone have a solution?
react-native-cli: 2.0.1
react-native: 0.59.9
npm: 6.9.0
Windows 10 Home
You have to install Git in Windows, from GitBash command prompt, you can run that command.
run "chmod 755 android/gradlew" on your project root folder and then run "react-native run-android" and enjoy
Most helpful comment
There may be a permission issue if you are using Linux/Ubuntu
Change permission of android/gradlew to 755
Here is a command
run
chmod 755 android/gradlewinside your app root folder