React-native: error Unrecognized command "run-android"

Created on 27 Nov 2019  路  6Comments  路  Source: facebook/react-native

error Unrecognized command "run-android".
info Run "react-native --help" to see a list of all available commands.
System:
    OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
    Memory: 172.18 MB / 7.58 GB
    Shell: 5.0.3 - /bin/bash
  Binaries:
    Node: 10.17.0 - /usr/bin/node
    Yarn: 1.19.1 - /usr/bin/yarn
    npm: 6.13.0 - /usr/bin/npm
  SDKs:
    Android SDK:
      API Levels: 23, 26, 27, 28
      Build Tools: 27.0.3, 28.0.3, 29.0.0
  npmPackages:
    react: 16.6.3 => 16.6.3 
    react-native: 0.58.6 => 0.58.6

React Native version: 0.58.6

Steps To Reproduce

after updating my react native cli from 2.1 to 3.0.0 I'm facing it with a project with
"react-native": "0.58.6", but not with 0.6x

Bug Author Feedback Verify on Latest Version Android Linux Ran Commands

All 6 comments


Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

馃憠 Click here if you want to take another look at the Bug Report issue template.

It looks like you are using an older version of React Native. Please update to the latest release, v0.61 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@rodrigofbm How did you solve your issue ? Got the same problem here

@PierreCapo still the same here. Only downgrad to CLI 2.10 works

For me I fixed it when I downgraded my react-native version from '0.61.x' to '0.59.x'.

It's been three weeks since we asked for additional information from the author of this issue. As it happens, we don't have enough information to take action. We are going to close this issue, but please do not hesitate to open a new issue if you are still encountering this problem.

Was this page helpful?
0 / 5 - 0 ratings