Hello Appium community,
I’m encountering an issue while using Appium Inspector and running mobile automation tests with Selenium in Python. Strangely, everything was working perfectly yesterday, but today, I’m facing an error that I’ve never encountered before. I would greatly appreciate your help in resolving this issue.
Here’s the error message I’m receiving:
[ADB] Using ‘adb.exe’ from ‘C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe’
[debug] [ADB] Running ‘C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server’
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected Android device
[debug] [ADB] Getting connected devices
[debug] [ADB] Could not find online devices
[debug] [ADB] Reconnecting adb (target offline)
[debug] [ADB] Running ‘C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 reconnect offline’
[debug] [ADB] Getting connected devices
[debug] [ADB] Could not find online devices
[debug] [ADB] Reconnecting adb (target offline)
[debug] [ADB] Running ‘C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 reconnect offline’
[debug] [ADB] Getting connected devices
[debug] [ADB] Could not find online devices
[debug] [ADB] Reconnecting adb (target offline)
It appears that Appium is having trouble recognizing my Android device. However, when I run ‘adb devices’ separately, the device is listed as connected and online.
Could you please provide guidance on how to troubleshoot and resolve this issue? I’m using Appium with Selenium in Python, and I’ve tried the following steps:
- Restarted the Appium server.
- Confirmed that the USB debugging mode is enabled on my Android device.
- Checked the ADB executable and port settings in Appium Inspector.
- Restarted my computer.
Any insights or suggestions you can provide would be greatly appreciated. Thank you in advance!