使用 Firebase Test Lab 时如何将模拟器的 ABI 指定为 x86_64?

How can I specify the ABI of my emulator to x86_64 when using Firebase Test Lab?

背景: 有些人有 this issue where their UI tests fail when their emulators aren't using ABI x86_64. Correct me if I'm wrong, but this seems to be a problem when running automated tests via Firebase Test Lab (via gcloud firebase test android run),因为他们的模拟器似乎没有使用 ABI x86_64。

使用gcloud firebase test android run时,是否可以设置所用模拟器的ABI?

Android ABIs:

Different Android devices use different CPUs, which in turn support different instruction sets. Each combination of CPU and instruction set has its own Application Binary Interface (ABI). An ABI includes the following information:

https://developer.android.com/ndk/guides/abis

这可能是 gcloud 有意限制的,因此使用的 ABI 与正在测试的设备相关联。如果您想确定 ABI 是否确实是问题所在,您可以使用:

gcloud firebase test android models list

https://firebase.google.com/docs/test-lab/android/command-line

查看 gcloud 中 Android 设备的列表并(手动)发现它们使用的 ABI,以及它们是否给您带来了问题。

目前 Firebase 测试实验室支持 x86 虚拟设备上的 ABI,但 x86_64 尚不支持。但是,x86_64 支持有望在今年晚些时候 Android S 设备发布时提供。

此外,gcloud firebase test android models describe MODEL_ID 命令将列出每个 Android 设备支持的 ABI。