beeware / briefcase

Tools to support converting a Python project into a standalone native application.
https://briefcase.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.61k stars 366 forks source link

Bump Android SDK Commandline Tools from 9.0 to 12.0 #1778

Closed rmartin16 closed 4 months ago

rmartin16 commented 5 months ago

Changes

PR Checklist:

rmartin16 commented 4 months ago

well....ever keeping us on our toes....Google's AVD manager in cmdline-tools v12.0 apparently respects XDG_CONFIG_HOME. So, the AVD config is in ~/.config/.android/avd instead of ~/.android/avd now....and Briefcase can't find the AVD's config to update it...

rmartin16 commented 4 months ago

FWIW, Android Studio will also respect XDG_CONFIG_HOME when creating an AVD.

However, $BRIEFCASE_HOME/tools/android_sdk/emulator/emulator will not be able to find this AVD that was just created in $XDG_CONFIG_HOME/.android.....because (surprise surprise) it doesn't respect XDG_CONFIG_HOME.

The avdmanager does support a -p/--path to define "the location where the directory for this AVD's files will be created".....but it still puts the AVD's ini file in $XDG_CONFIG_HOME/.android (!!!!!!) and we still have the same issue.

So, anyway....I think it'll be best to ensure XDG_CONFIG_HOME is always overridden when running avdmanager...

rmartin16 commented 4 months ago

hmm...another PytestUnraisableExceptionWarning...although transient: https://github.com/beeware/briefcase/actions/runs/9005657139/job/24741533654?pr=1778