Navigating to each directory and running: adb.exe versionĪllowed me to see that Expo was running ADB version: Android Debug Bridge version 1.0.36
This produced the results: C:\Program Files\Expo XDE\resources\app\node_modules\xdl\binaries\windows\adb\adb.exeĬ:\Program Files\Genymobile\Genymotion\tools\adb.exeĬ:\Users\kyle\AppData\Local\Android\Sdk\platform-tools\adb.exeĬ:\Users\kyle\AppData\Local\Android\Sdk\platform-tools\adb backup\adb.exe Here is the command I used to find them: where /r C:\ adb.exe What I discovered was there was a difference in ADB versions being used throughout the system.
* failed to start daemon * error: cannot connect to daemon Listener: cannot bind to 127.0.0.1:5037: Only one usage of each socketĪddress (protocol/network address/port) is normally permitted.
I still received the:Ĭouldn't start project on Android: could not install smartsocket Setting Genymotion to point to the custom SDK didn't have any affect. *o/p /platform-tools/adb* -> You are all good now $ export PATH="/path/to/android_sdk/platform-tools:$PATH" O/p -rwxr-xr-x 1 root root 160912 adb_bakup *o/p /usr/bin/adb - (output will depend on your machine)* The easier fix and to avoid this issue in future rename the older (misleading) adb binary file to something else.įollow the steps to resolve this issue. Nothing wrong running adb other than the one provided with SDK but the downside is it is not updated automatically when the android SDK is updated and that's why you running into this out-dated version issue. If not pointing to ANDROID_SDK/platform-tools/adb then you are running some old version of adb installed on a different location on the machine. If on linux check where is the adb binary located which adbĮxpected Output : ANDROID_SDK/platform-tools/adb This is caused because you are running a adb other than the one included in the SDK. Now obviously that problem solved as well.
So just followed - to update the adb in “/usr/bin” # adb versionĪnd now running adb devices works perfectly as expected.Īnd it also solved the associated problem that, before my PhoneGap (Cordova) app was not getting integrated with the Genymotion's virtual device. Then saw, that running adb versionfrom my Android SDK installation directory “~/Android/Sdk/platform-tools” produced - "Android Debug Bridge version 1.0.32"īut, adb version command from “/usr/bin” directory produced- “Android Debug Bridge version 1.0.31" I also tried with killing and starting the adb server and few other solutions from around the web). (Before, narrowing down this problem source, I already had Genymotion's Settings > "Use custom Android SDK tools" referring to my machine's installed Android SDK directory as advised by Aditya Kresna Permana. In my machine (Ubuntu 14.04 and Genymotion 2.5.2) the source of the problem was that, I had 2 adb files of different versions. Once the adb processes - and thus conflicts - are resolved, then retry running adb from the command-line again: adb start-server Here are the logs from just before adb restarts - 1291 locapi_rpc_glue V loc_ioctlġ291 RPC D written RPC packet size: ġ291 lib_locapi V qct_loc_eng_inject_xtra_data, inject part = 100, len = 167, len = 167ġ291 lib_locapi V qct_loc_eng_inject_xtra_data, total part = 100, len = 167ġ291 lib_locapi D qct_loc_eng_inject_xtra_data: injected 39767, SUCCESSġ291 lib_locapi V inject_xtra_waiting = flaseġ291 GpsLocationProvider D Releasing wakelockġ291 WifiService D releaseWifiLockLocked: WifiLock') Then, if I run it again, it again does the exact same thing - $ adb devicesĪlso, my DDMS keeps giving me the following message - Adb connection Error:An existing connection was forcibly closed by the remote host Then, if I run adb devices again, it does the same thing - $ adb devices It says daemon is not running and restarts the daemon. Whenever I try to run adb devices: $ adb devices