dotnet/runtime

[Android] Add Local Emulator Setup

Open

#42,124 创建于 2020年9月11日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)C# (5,445 fork)batch import
area-Infrastructure-monohelp wantedos-android

仓库指标

Star
 (17,886 star)
PR 合并指标
 (平均合并 12天 11小时) (30 天内合并 661 个 PR)

描述

Since the emulators used on CI for x86 and x64 are system ones, we should provide a setup script to ensure we run against the same locally.

At the very least, we'll need to include these commands:

${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager "system-images;android-<LEVEL>;default;x86"
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager "system-images;android-<LEVEL>;default;x86_64"
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/sdkmanager --licenses
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/avdmanager --verbose create avd --force --name <NAME> --package 'system-images;android-<LEVEL>;default;x86'
${ANDROID_SDK_ROOT}/cmdline-tools/tools/bin/avdmanager --verbose create avd --force --name <NAME> --package 'system-images;android-<LEVEL>;default;x86_64'

I don't have an opinion on whether this should be optional or run as a regular part of the build. Thoughts and suggestions welcome.

贡献者指南