I am getting the above error when previewing the react app on an android studio simulator. Please help. Here is the error:
"CommandError: The development client (com.reactnative02) for this project is not installed. Please build and install the client on the device first."
I was facing the same issue and below commands helped me to resolve it. Hope works for you as well. Firstly close your Metro Bundler and emulator, then try:
expo run:android
If it doesn't help go with:
npx react-native run-android
probably you are tring to use development build.
first start your expo app (-c for clear cache)
npx expo start -c
then press s
(for switch to expo go)
now you can press a
(for run android emulator)
alternative:
you can use --go
option for start with expo go
npx expo start --go
NOTE
Same libraries not work on expo go and require development build. If you are using library like this first you must create a development build. (https://docs.expo.dev/develop/development-builds/create-a-build/)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With