briefcase icon indicating copy to clipboard operation
briefcase copied to clipboard

ANDROID_SDK_ROOT does not point to an Android SDK

Open t-arn opened this issue 1 year ago • 2 comments

Describe the bug

When you want briefcase to use an already installed Android SDK (on Windows), you can set the environment variable ANDROID_SDK_ROOT or ANDROID_HOME.

When running briefcase create android you might get the following warning:

ANDROID_SDK_ROOT does not point to an Android SDK

even though the environment variable does point to the correct folder. The reason for the warning message is that the Android Sdk does not include the command-line tools.

Steps to reproduce

  1. Install Android Studio
  2. From Android Studio, install the Android SDK (without selecting the command-line tools)
  3. Set the environment variable ANDROID_SDK_ROOT or ANDROID_HOME to the Android/Sdk folder
  4. Run briefcase create android
  5. See error ANDROID_SDK_ROOT does not point to an Android SDK

Expected behavior

The error message should be more specific, e.g. no command-line tools found under the folder {ANDROID_SDK_ROOT}

Screenshots

No response

Environment

  • Operating System: Windows 11
  • Python version: 3.9, 3.10, 3.11
  • Software versions:
    • Briefcase: 0.3.15

Logs


Additional context

No response

t-arn avatar Oct 20 '23 12:10 t-arn