Open baltpeter opened 1 year ago
To test this further, I also created an Android 12 x64_86 emulator using Android Studio. This one at least supports x86_64 but none of the 32-bit architectures:
❯ adb shell getprop | grep ro.product.cpu.abi
[ro.product.cpu.abi]: [x86_64]
[ro.product.cpu.abilist]: [x86_64,arm64-v8a]
[ro.product.cpu.abilist32]: []
[ro.product.cpu.abilist64]: [x86_64,arm64-v8a]
How odd.
Just to make sure, I also created a fresh Android 11 x86_64 emulator. That does indeed support all relevant architectures:
❯ adb shell getprop | grep ro.product.cpu.abi
[ro.product.cpu.abi]: [x86_64]
[ro.product.cpu.abilist]: [x86_64,x86,arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [x86,armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [x86_64,arm64-v8a]
Here are the supported architectures for an Android 11 x86 emulator:
❯ adb shell getprop | grep ro.product.cpu.abi
[ro.product.cpu.abi]: [x86]
[ro.product.cpu.abilist]: [x86,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [x86,armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: []
That makes sense at least.
Meanwhile, I can't run an Android 13 arm64-v8a emulator on my machine:
INFO | Android emulator version 31.3.10.0 (build_id 8807927) (CL:N/A)
emulator: INFO: Found systemPath /home/benni/android/system-images/android-33/google_apis_playstore/arm64-v8a/
PANIC: Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host.
I tried to look for any announcements or similar regarding this but came up empty. The only thing I found was a StackOverflow question with no answers where the user seems to have noticed the same thing.
In terms of official documentation, I only found:
Can someone else please verify my findings? If this is true, we should mention in the README that an Android 11 emulator is recommended for best app compatibility.
I can confirm this. This is extremely unfortunate.
I just noticed that I couldn't install an app with native ARM libraries into my Android 13 emulator created as per our README:
The app has native ARM libraries:
And indeed:
Whereas in an Android 11 emulator, I get:
To make sure this isn't a problem with how we're creating the emulator, I created a new one using Android Studio. Same problem.