question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

22reactions
codetyconcommented, Nov 28, 2018

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

16reactions
farhanaslam5151commented, Dec 11, 2018

i am using windows having same issue, can’t run the chmod 755 android/gradlew command any solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native run-android command failed, but gradlew ...
./gradlew installDebug gave me some errors and fixed it all. Finally build get successed and app is working on Android device. But react-native ......
Read more >
I can't run react-native run-android - Super User
Building and installing the app on the device (cd android && ./gradlew installDebug)... FAILURE: Build failed with an exception. What went wrong ...
Read more >
Task :app:installDebug FAILED | React Native Errors | Fixed!
reactnative #reactjs # android #reactnativeerrorserror Failed to install the app. Make sure you have an Android emulator running or a device ...
Read more >
Error while building Android? - Development - Joplin Forum
I'm trying to build Android locally so we can support custom ... Could not install the app on the device, read the error...
Read more >
gradlew.bat app:installDebug - Command failed - You.com
Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found