fastlane-plugin-automated-test-emulator-run icon indicating copy to clipboard operation
fastlane-plugin-automated-test-emulator-run copied to clipboard

Use Android cmdline-tools

Open cleemansen opened this issue 3 years ago • 1 comments

Are there any plans to switch to the newer Android cmdline-tools?

Currently the now deprecated SDK Tools are in use.

cleemansen avatar Jun 16 '21 06:06 cleemansen

For now, if you have to use cmdline-tools, cause you e.g. use Java > 8, I used the following (dirty) workaround:

Override avdmanager, so it uses the new/correct one, since it'll ignore my path

  • rm -f $ANDROID_HOME/tools/bin/avdmanager
  • echo '$ANDROID_TOOLS/bin/avdmanager "$@"' > $ANDROID_HOME/tools/bin/avdmanager
  • chmod +rwx $ANDROID_HOME/tools/bin/avdmanager It's basically replacing the deprecated avdmanager with a script, calling the new avdmanager with all parameters given to it.

Sahara150 avatar Jul 10 '23 11:07 Sahara150