Skip to content

Conversation

@dfabulich
Copy link
Contributor

Fixes skiptools/skip#605

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

@cla-bot cla-bot bot added the cla-signed label Feb 3, 2026
}
} else {
let sdkAdbPath = "\(androidHome)/platform-tools/adb"
try await checkVersion(title: "Android SDK version", cmd: [sdkAdbPath, "--version"], min: Version("36.0.0"), pattern: "Version ([0-9.]+)", hint: " (install from https://developer.android.com/studio)")
Copy link
Member

Choose a reason for hiding this comment

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

This is checking the SDK version, not the adb version (which we already check above, for the adb in the PATH). There are two versions in the output, one for the actual adb version and the other for the SDK version:

Android Debug Bridge version 1.0.41
Version 36.0.2-14143358
Installed as /Users/marc/Library/Android/sdk/platform-tools/adb
Running on Darwin 24.6.0 (arm64)

I understand that the purpose of this extra check is to validate the presence of the ANDROID_HOME (either environment, or our guess about where it is), but we don't have a minimum SDK requirement of 36.0.0. It might be better to just re-check the same ADB version as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was checking the SDK version on purpose. (If someone tries to use a preposterously ancient Android SDK or an untested new version, I think skip doctor should show that.)

So, I think we should pick a plausible minimum supported SDK version. 29.0.0?

@dfabulich dfabulich force-pushed the doctor-android-home branch from e10ca78 to 370ada5 Compare February 3, 2026 07:01
@dfabulich
Copy link
Contributor Author

I cranked the minimum down to 29.0.0 (which seems pretty plausible to me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skip doctor should validate that the Android SDK exists

2 participants