close

[Solved] error Failed to install the app. Make sure you have the Android development environment set up in React Native

Hello Guys, How are you all? Hope You all Are Fine. Today in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How error Failed to install the app. Make sure you have the Android development environment set up in React Native Error Occurs ?

I am just run My React native ios in Android Emulator But I Am Facing Following error in my terminal.

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.facebook.yoga:proguard-annotations:1.14.1.

How To Solve error Failed to install the app. Make sure you have the Android development environment set up in React Native Error ?

  1. How To Solve error Failed to install the app. Make sure you have the Android development environment set up in React Native Error?

    To Solve the error Failed to install the app. Make sure you have the Android development environment set up in React Native Error In allprojects repositories Add jcenter() Just Open Your build.gradle file In allprojects repositories Add jcenter() Here is Example. Second solution is If react-native-video is not in use then Just uninstall by this command line is solved My error.

  2. error Failed to install the app. Make sure you have the Android development environment set up in React Native

    To Solve the error Failed to install the app. Make sure you have the Android development environment set up in React Native Error In allprojects repositories Add jcenter()ust Open Your build.gradle file In allprojects repositories Add jcenter() Here is Example. Second solution is If react-native-video is not in use then Just uninstall by this command line is solved My error.

Solution 1: Add jcenter()

  1. Just Open Your build.gradle file
  2. In allprojects repositories Add jcenter()
  3. Here is Example.
allprojects {
    repositories {
        mavenCentral()
        mavenLocal()
        jcenter()
}

Solution 2: uninstall react-native-video

If react-native-video is not in use then Just uninstall by this command line is solved My error.

npm uninstall --save react-native-video

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment