Skip to content

Fix: remove hasInitialDeviceList() call that throws UnsupportedMethodException#58

Merged
Grigory-Rylov merged 1 commit into
masterfrom
feature/device-search-logging
May 25, 2026
Merged

Fix: remove hasInitialDeviceList() call that throws UnsupportedMethodException#58
Grigory-Rylov merged 1 commit into
masterfrom
feature/device-search-logging

Conversation

@Grigory-Rylov

@Grigory-Rylov Grigory-Rylov commented Apr 23, 2026

Copy link
Copy Markdown
Owner

AndroidDebugBridge.hasInitialDeviceList() кидает UnsupportedMethodException в новых версиях Android Studio (из-за AdbLibAndroidDebugBridge-совместимости). Это ломало isReady() и устройства не загружались.

Fix: убрать вызов hasInitialDeviceList(), оставив только проверку isConnected.

@binarynoise

Copy link
Copy Markdown

com.android.adblib.ddmlibcompatibility.AdbLibAndroidDebugBridge#hasInitialDeviceList
throws UnsupportedMethodException.
Fixing this could be to not call hasInitialDeviceList.
For testing, I replaced hasInitialDeviceList() with hardcoded true and the devices list gets populated again.

@Grigory-Rylov Grigory-Rylov force-pushed the feature/device-search-logging branch from dead0ba to ce975cd Compare May 25, 2026 13:29
@Grigory-Rylov Grigory-Rylov changed the title Add device search logging for debugging missing devices Fix: remove hasInitialDeviceList() call that throws UnsupportedMethodException May 25, 2026
@Grigory-Rylov

Copy link
Copy Markdown
Owner Author

com.android.adblib.ddmlibcompatibility.AdbLibAndroidDebugBridge#hasInitialDeviceList throws UnsupportedMethodException. Fixing this could be to not call hasInitialDeviceList. For testing, I replaced hasInitialDeviceList() with hardcoded true and the devices list gets populated again.

Thank you very much, my colleague found the bug, but I couldn't reproduce it and was wondering what the problem was.

Comment thread gradle.properties Outdated
# for insight into build numbers and IntelliJ Platform versions.
sinceBuild=253.28294.334
pluginVersion=26.04.12.0
pluginVersion=25.05.26.0

@binarynoise binarynoise May 25, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that you didn't mean 26.05.26.0 here?

Suggested change
pluginVersion=25.05.26.0
pluginVersion=26.05.26.0

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!! 26.05.25.0 ))))

@Grigory-Rylov Grigory-Rylov force-pushed the feature/device-search-logging branch from 1c081ba to 89cb71e Compare May 25, 2026 13:56
@Grigory-Rylov Grigory-Rylov merged commit 3323b40 into master May 25, 2026
4 checks passed
@Grigory-Rylov Grigory-Rylov deleted the feature/device-search-logging branch May 25, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants