briefcase
briefcase copied to clipboard
ANDROID_SDK_ROOT does not point to an Android SDK
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
- Install Android Studio
- From Android Studio, install the Android SDK (without selecting the command-line tools)
- Set the environment variable ANDROID_SDK_ROOT or ANDROID_HOME to the Android/Sdk folder
- Run
briefcase create android
- 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