Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running React Native App on Android emulator

When I start a HelloWorld App on react-native using "expo start" command getting the error below. The emulator is up and running . Expo go is already installed. But for some reason app is not installing. Any pointers to resolve this would be very helpful.

Couldn't start project on Android: Error running adb: Error running app. args: [-p, host.exp.exponent, -c, android.intent.category.LAUNCHER, 1]
     arg: "-p"
     arg: "host.exp.exponent"
     arg: "-c"
     arg: "android.intent.category.LAUNCHER"
     arg: "1"
    data="host.exp.exponent"
    data="android.intent.category.LAUNCHER"
    ** SYS_KEYS has no physical keys but with factor 2.0%.

enter image description here

like image 975
Mansi Shah Avatar asked Sep 24 '26 02:09

Mansi Shah


2 Answers

I resolve this

cd ~/.android/avd/your-device.avd

edit (I use vscode)

code config.ini

find and replace

hw.keyboard = yes

save, hope it helps.

like image 160
gglennd Avatar answered Sep 25 '26 14:09

gglennd


Was able to resolve it by manually adding the url for the project on the expo go app in emulator and press Connect.

exp://192.168.0.22:19000

enter image description here

like image 40
Mansi Shah Avatar answered Sep 25 '26 16:09

Mansi Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!