James Baloyi
James Baloyi

Reputation: 82

React Native app runs on emulator, not on device

The app runs perfectly on an emulator from Android Studio, but returns

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment

When I run it from the CLI

I've tried rerunning the command and creating a new project

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment

Upvotes: 1

Views: 999

Answers (1)

PatrickStar
PatrickStar

Reputation: 31

Follow the steps below in order to solve the issue:

  1. Go to the root project folder.

  2. Find the Android project (which the Android Studio would recognize)

  3. Open it on Android Studio and fix all the Gradle-related issues.

  4. Once there is no more issue, close Android Studio and rerun the react command.

Upvotes: 2

Related Questions