You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Parts of the Android SDK do not support running from an installation path that contains whitespace, e.g. /sdks/android sdk/.
Briefcase's data directory was moved from ~/.briefcase to OS-native locations in #777; for macOS, this location is ~/Library/Application Support/briefcase and encountered this existing issue for Android SDK.
(venv-3.9) user@users-MacBook-Pro helloworld % briefcase run android -v
The Android tools provided by Google have license terms that you must accept
before you may use those tools.
>>> Running Command:
>>> '/Users/user/Library/Application Support/briefcase/tools/android_sdk/cmdline-tools/latest/bin/sdkmanager' --licenses
>>> Environment Overrides:
>>> ANDROID_SDK_ROOT=/Users/user/Library/Application Support/briefcase/tools/android_sdk
>>> JAVA_HOME=/Users/user/Library/Application Support/briefcase/tools/java/Contents/Home
Error: Could not find or load main class Support.briefcase.tools.android_sdk.cmdline-tools.latest
>>> Return code: 1
In android/ndk#1400, it was noted this is unlikely to ever be fixed. And the internet is full of people encountering this problem.
Of note, though, this is not limited to macOS.
On Linux, if you set XDG_DATA_HOME=/mnt/my data/, for example, you'll have the same problem.
On Windows, the user's home directory will contain a space if the user specifies a space in their "name" during account creation. Therefore, while the specific issue outlined above may not surface, other issues with Android SDK and whitespace could occur on Windows.
To Reproduce
Steps to reproduce the behavior (on macOS):
Run briefcase new --no-input && cd helloworld && briefcase run android
Expected behavior
The Android SDK should properly run from briefcase's default installation location regardless of platform or user/system configuration.
The text was updated successfully, but these errors were encountered:
Describe the bug
Parts of the Android SDK do not support running from an installation path that contains whitespace, e.g.
/sdks/android sdk/
.Briefcase's data directory was moved from
~/.briefcase
to OS-native locations in #777; for macOS, this location is~/Library/Application Support/briefcase
and encountered this existing issue for Android SDK.In android/ndk#1400, it was noted this is unlikely to ever be fixed. And the internet is full of people encountering this problem.
Of note, though, this is not limited to macOS.
On Linux, if you set
XDG_DATA_HOME=/mnt/my data/
, for example, you'll have the same problem.On Windows, the user's home directory will contain a space if the user specifies a space in their "name" during account creation. Therefore, while the specific issue outlined above may not surface, other issues with Android SDK and whitespace could occur on Windows.
To Reproduce
Steps to reproduce the behavior (on macOS):
pip install git+https://github.com/beeware/briefcase.git@baf2942d08e09f8bb61fcecafb148904bedec6c2
briefcase new --no-input && cd helloworld && briefcase run android
Expected behavior
The Android SDK should properly run from briefcase's default installation location regardless of platform or user/system configuration.
The text was updated successfully, but these errors were encountered: