3

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

Rishika
  • 271
  • 1
  • 7
  • 17

6 Answers6

1

I was facing this issue on my Windows 10 laptop. Based on this answer, this is what I've done:

  • In Genymotion, open settings
  • In the tab ADB, browse the ADB.EXE located deep inside the EXPO installation folder. See image below
  • Go back to EXPO and click on the device button and open in Android.

enter image description here

Ives.me
  • 2,198
  • 15
  • 21
0

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.

0

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.

chidimo
  • 1,826
  • 2
  • 20
  • 33
0

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.
-1

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

Sameer
  • 11
  • 1
-3

tns run android --emulator specifically targets the Android SDK emulator. You have two options to use Genymotion:

Start the Genymotion virtual device and never close it. Then remove the --emulator parameter, like tns run android use the --geny parameter, like: tns run android --emulator --geny . You can also use the shorter emulate command, like tns emulate android --geny For more details, you can refer to our online help at any time using tns help run android.

Hope this helps!

Avinash Roy
  • 948
  • 1
  • 8
  • 25