Skip to content

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. #21437

@mhannan

Description

@mhannan

react-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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions