Skip to content
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

Make sure you have an Android emulator running or a device connected and have set up your Android development environment #1384

Closed
darijus opened this issue Feb 21, 2019 · 8 comments
Labels

Comments

@darijus
Copy link

darijus commented Feb 21, 2019

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

ignite doctor results:

  platform           win32                                                                                              
  arch               x64                                                                                                
  cpu                8 cores                                         Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  directory          C:\Users\xxx\Projects\AppName                                                   

JavaScript
  node               11.10.0      C:\Program Files\nodejs\node.EXE
  npm                6.7.0        C:\Program Files\nodejs\npm.CMD
  yarn               1.13.0       C:\Program Files (x86)\Yarn\bin\yarn.CMD

React Native
  react-native-cli   2.0.1
  app rn version     0.57.7

Ignite
  ignite             2.2.2            C:\Users\xxx\AppData\Local\Yarn\bin\ignite.CMD
  boilerplate        ignite-andross

Android
  java               -            C:\Program Files\Java\jdk1.8.0_201\bin\java.EXE
  android home       -            C:\Users\xxx\AppData\Local\Android\Sdk

Doesn't happen on a normal react native app

@thattejada
Copy link

@darijus, do you have android studio installed, configured and some virtual device running in the AVD Manager?
I use these and everything runs well:
screen shot 2019-02-22 at 10 00 09 am

@vadim-96
Copy link

vadim-96 commented Mar 16, 2019

@darijus first you need to run android emulator from the AVD Manager, then start your project: react-native run-android
Don't forget about the android paths: https://reactnative.dev/docs/environment-setup

@kevinvangelder
Copy link
Member

@darijus By "normal React Native app" do you by chance mean an Expo generated app? If so, you'll probably need to download and install Android Studio, it's dependencies, and the necessary SDKs to get an emulator up and running. Under the hood, we're actually running the same commands to launch the React Native app on your emulator as vanilla React Native, so it is unlikely we have caused the issue you are experiencing.

@jamonholmgren
Copy link
Member

Since this issue is pretty old, I'm going to close it. Please open a new issue if you continue to run into this problem! <3

@certilremy
Copy link

I Have the same Problem here. When I create a fresh new app it work , if I close an reopen the app I can't run it keeps telling me this error. I need to create a fresh app an copy my old code to continue working every time i close my App .

@jamonholmgren
Copy link
Member

@certilremy, that sounds really painful! I'm not sure what we can do here to help you, though. If you provide a fresh Ignite-powered app that reproduces the issue, then we can take a look. Please open a new issue if you do.

@kukokp
Copy link

kukokp commented Jun 20, 2019

I open genymotion and device is show in android studio but when i run react-native project then
"Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:"

This error is showing please guide me for the same

@GreenRidingHood
Copy link

chmod 755 android/gradlew && react-native run-android

Maybe help anyone, I run that line at terminal and solved my issue
https://superuser.com/questions/1399393/i-cant-run-react-native-run-android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants