I am trying to run react-native android app in my nexus5 emulator
adb devices
List of devices attached
emulator-5554 device
started pack
Try : react-native run-android --deviceId YOUR_ID
.
adb is known to be flaky. Try:
$ adb kill-server
Probable Cause
I faced this issue recently , I had first developed an app called 'myApp' in CordovaJS where the app domain was com.myapp and had it installed (this was months before I got into react ). Then when I switched to react-native I did an app with a domain com.myapp and ran into the same problem you are in.
So I figured out that there was conflicts when it came to domain and source .
Solution :
Uninstall the app that has a similar domain as the one that you are installing eg com.example , then reboot your phone .
It worked for me , I hope it works for you too.
If your device or emulator have an application having same name with the application you are building. Just remove the old one. It will resolve the issue.
For your AVD emulator settings, try to make sure the "Use Host GPU" setting is checked, and relaunch the emulator and try again.
For those like me having this issue in the emulator, one more tip: try to free up the available storage space in the emulator. That worked for me.
So many test apps and previous developed apps installed XD