tadfisher/android-nixpkgs

Improve documentation on simultaneous usage of `cmdline-tools-latest` and `tools`

irisjae opened this issue · 0 comments

Hi, first of all, I'd like to express my thanks for the great work in this package set.

When I first used cmdline-tools-latest with this package set to build my project, apparently some dependencies also demanded the presence of a tools installation as well.

If one includes both cmdline-tools-latest and tools, care must be taken to put cmdline-tools-latest after tools in the list of requested sdk packages. This is due to some binaries with the same name being present in both cmdline-tools-latest and tools. The binary version listed later will be effective in the outputs provided to $PATH.

The old tools version does not pass all the flags to find android sdk roots, and thus will cause the sdk package to exhibit symptoms such as avdmanager hanging on "Loading local repository..." and emulator hanging similarly.

I think this should be better documented, and would've saved me several hours of time.

Thanks!