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

npx react-native run-android never finish #1066

Closed
paulequilibrio opened this issue Mar 23, 2020 · 7 comments
Closed

npx react-native run-android never finish #1066

paulequilibrio opened this issue Mar 23, 2020 · 7 comments
Labels
bug Something isn't working platform: android

Comments

@paulequilibrio
Copy link

Environment

System:
    OS: Linux 5.5 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
    Memory: 133.47 MB / 7.64 GB
    Shell: 3.1.0 - /usr/bin/fish
  Binaries:
    Node: 13.11.0 - /usr/bin/node
    Yarn: 1.22.4 - /usr/bin/yarn
    npm: 6.14.3 - /usr/bin/npm
    Watchman: 4.9.0 - /usr/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 28
      Build Tools: 28.0.3
      System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6241897
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5

Description

This problem is the same related here: facebook/react-native#26097

It seems that the solution was already suggested here: facebook/react-native#26097 (comment)

Reproducible Demo

  1. Start a new project with npx react-native init Project
  2. Enter the directory cd Project
  3. Try the command npx react-native run-android
@thymikee
Copy link
Member

JS server may open in another Terminal tab and it may take a while for Metro to finish. Does it work if you run start manually before run-android?

@paulequilibrio
Copy link
Author

@thymikee, yes in that case works.

@thymikee thymikee added bug Something isn't working and removed bug report labels Mar 27, 2020
@Esemesek
Copy link
Member

Esemesek commented Apr 5, 2020

It seems like we were not using the correct terminal program. Last year we replaced the default TERM with TERM_PROGRAM which is specific to OSX. It caused to open the metro in the current terminal without any visible output. Gonna create a PR soon.

@thymikee
Copy link
Member

thymikee commented Apr 5, 2020

Closed via #1099

@ShivamJoker
Copy link

Hey I am still facing this issue it not launching or building the app please help. I in mac os

@Esemesek
Copy link
Member

Esemesek commented Apr 7, 2020

@ShivamJoker fix is available in the latest version of the CLI. If you use linux make sure to have TERM env variable exported correctly.

@Esemesek
Copy link
Member

Esemesek commented Apr 7, 2020

On OSX, similar to linux, you need to have TERM_PROGRAM variable exported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: android
Projects
None yet
Development

No branches or pull requests

4 participants