Fixing React Native Error Failed to install the app
Fixing react native unable to launch android emulator error
One of the things that you may dislike about react native is this kind of mysterious errors that popup from time to time. Where anything works in harmony and suddenly you encounter
error Failed to install the app. Make sure you have the Android development environment set up
And I can swear to you that my Android development environment was all set correctly because seconds ago everything was perfect!
So only if you can swear like me that your android development were setup, then feel free to continue with this solution.
Otherwise, you may checkout setting up the development environment Article on https://reactnative.dev/docs/environment-setup
npm install
cd android
chmod +x ./gradlew
xattr -l ./gradlew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install android-platform-tools
npx react-native run-android
Comments