question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to detect adb connected devices

See original GitHub issue

Hi,

I have multiple devices connected to the system running appium device farm, but none of them are detected.

I get the following error after starting the server:

TypeError: Cannot read property 'getConnectedDevices' of undefined
    at AndroidDeviceManager.<anonymous> (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:83:48)
    at Generator.next (<anonymous>)
    at fulfilled (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:5:58)

Installed and ran using the following commands:

npm -g install appium@2.0.0-beta.21
appium driver install uiautomator2
appium plugin install --source=npm appium-device-farm
appium plugin install --source=npm appium-dashboard
appium server -ka 800 --use-plugins=device-farm,appium-dashboard  -pa /wd/hub --plugin-device-farm-platform=android

Here’s the full logs:

$ appium server -ka 800 --use-plugins=device-farm,appium-dashboard  -pa /wd/hub --plugin-device-farm-platform=android
(node:30327) ExperimentalWarning: Package name self resolution is an experimental feature. This feature could change at any time
[Appium] Attempting to load plugin device-farm...
In Con android
[Appium] Attempting to load plugin appium-dashboard...
[appium-dashboard] Video directory created /home/techm/.cache/appium-dashboard-plugin/videos
[Appium] Welcome to Appium v2.0.0-beta.21 (REV 28bc2fd99149bbc8462df8b9962786b7ee91966c)
[Appium] Non-default server args:
[Appium]   basePath: /wd/hub
[Appium]   keepAliveTimeout: 800
[Appium]   usePlugins: {
[Appium]     0: device-farm
[Appium]     1: appium-dashboard
[Appium]   }
[Appium] Attempting to load driver uiautomator2...
[device-farm] Device Farm Plugin will be served at http://localhost:4723/device-farm
[device-farm] If the appium server is started with different port other than 4723, then use the correct port number to access the device farm dashboard
TypeError: Cannot read property 'getConnectedDevices' of undefined
    at AndroidDeviceManager.<anonymous> (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:83:48)
    at Generator.next (<anonymous>)
    at fulfilled (/home/techm/.appium/appium-device-farm/node_modules/appium-device-farm/lib/device-managers/AndroidDeviceManager.js:5:58)
[device-farm] Device list updated: []
[appium-dashboard] Dashboard plugin is enabled and will be served at http://localhost:4723/dashboard
[appium-dashboard] If the appium server is started with different port other than 4723, then use the correct port number to access the device farm dashboard
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Available drivers:
[Appium]   - uiautomator2@2.0.1 (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium]   - device-farm@1.0.0-beta.11 (ACTIVE)
[Appium]   - appium-dashboard@1.0.0-beta.10 (ACTIVE)
[device-farm] Device list updated: []
[device-farm] Device list updated: []

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
saikrishna321commented, Jan 27, 2022

We need to improve failing message

1reaction
entombercommented, Jan 27, 2022

@sudharsan-selvaraj It was not set. After setting it I was able see the devices. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android ADB doesn't see device - Stack Overflow
Navigate to Driver tab. Select Update Driver and then Browse my computer for driver software . Choose %ANDROID_SDK_HOME%\extras\google\usb_driver directory.
Read more >
Android Won't Connect to Windows Over ADB? How to Fix in 3 ...
ADB Can't Find Your Device? Here's the Fix · Connect your Android device to your PC via USB and remove the ADB drivers....
Read more >
Fix: ADB Devices Not Found - Appuals.com
What Causes the ADB Device Not Found Error? · Method 1: Enable Developer Options and USB Debugging · Method 2: Change Connection Mode...
Read more >
[Solved] ADB Device Not Found Error on Windows 10/11
Way 1: Install the correct driver for your ADB device manually through Device Manager · 1) Find your SDK manager from Start list....
Read more >
Android ADB interface does not show in Device Manager
How to check for your device in Device Manager · 1. Make sure USB Debugging is enabled on your Android device. Enable Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found