React native is not starting on android emulator #28812
Labels
Needs: Triage 🔍
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
NB: This isn't a bug with react-native, I just need help with this.
Description
So I messed up with my environment variables settings, after moving for bash to zsh. But now I have sorted it out, when I run a flutter project from android studio, it shows on an emulator.
but when I run react-native run-android, I get the below error
error Failed to install the app. Make sure you have the Android development environment set up
Although the project works fine on Ios.
This is currently how my .zshrc is configured
...
...
export ANDROID_HOME=/Users/squarelabs/Library/Android/sdk
export PATH=$ANDROID_HOME/emulators:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
and I also have this in my local.properties
sdk.dir=/Users/squarelabs/Library/Android/sdk
React Native version:
The text was updated successfully, but these errors were encountered: