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.
See original GitHub issuereact-native** run-android
command in Windows shows installation fail error.
Environment
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
Packages: (wanted => installed)
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
Description
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.
Some Background (if required)
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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (1 by maintainers)
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/gradlew
inside your app root folderi am using windows having same issue, can’t run the chmod 755 android/gradlew command any solution