Cannot run android app using expo and genymotion

Viewed 4439

expo

I am use genymotion along with expo to run my react-native app. I am not getting any errors with genymotion, but when i try to run it with expo, i get the following error:

Couldn't start project on Android: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048) could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon

I don't have vt-x enabled in my system so Android 5 and above versions are not working. This I am trying to run using Custom tablet 4.2.2-API 17 - 1536x2048. enter image description here

Please guide me on how to proceed!

UPDATE : @dikaiosune here is the output of adb devices enter image description here

6 Answers

ubuntu 16.04

Remove any adb you may have.

sudo apt remove adb

Add to your ~/.basrc :

export ANDROID_HOME='Path to Android SDK'
export PATH=$PATH:'Your Genymotion Directory/tools/'

The last one gonna add 'adb' from genymotion to your path.

PS: Don't forget to close and reopen your terminal.

It worked for me, was facing the same problem. Hope it helps.

I changed my genymotion adb folder to this C:\Users\<account-name>\AppData\Roaming\npm\node_modules\expo-cli\node_modules\xdl\binaries\windows\adb and it worked.

I was facing the same issue and AirServer worked for me. The steps are:

  1. Install AirServer on your laptop
  2. Install AirServer mobile app on your mobile
  3. Now after running the project through your expo client app on mobile, just open your AirServer mobile app and scan the code or open the link and here your native app is running on your laptop.

My ADB.exe was present at: C:/Users/hp/AppData/Roaming/npm/node_modules/expo-cli/node_modules/xdl/binaries/windows/adb

I changed to this and it worked fine.screenshot

Related