I'm currently installing Android Studio on my Mac Mini M1 (after a factory reset), but I got an error using the emulator command (from android SDK), each time I run it, the first output line is the following error:
INFO | Storing crashdata in: /tmp/android-gregoire/emu-crash-34.1.18.db, detection is enabled for process: 4832
For example:
> emulator -list-avds
INFO | Storing crashdata in: /tmp/android-gregoire/emu-crash-34.1.18.db, detection is enabled for process: 4832
Pixel_3a_API_34
> emulator -help
INFO | Storing crashdata in: /tmp/android-gregoire/emu-crash-34.1.18.db, detection is enabled for process: 4872
Android Emulator usage: emulator [options] [-qemu args]
options:
-list-avds list available AVDs
-sysdir <dir>
[...]
So this is not related to any of the existing AVD (there is only a single AVD, but I got this error even if I remove it).
This is really painful because I develop using React Native who use the emulator -list-avds
internally to start the first available AVD, but the react-native android
command consider it should use the AVD named "INFO | Storing crashdata in: /tmp/android-gregoire/emu-crash-34.1.18.db, detection is enabled for process: 4832" that obviously doesn't exist.
Also when I go to the error folder /tmp/android-gregoire/emu-crash-34.1.18.db
, there is nothing relevant, only empty folders attachments
, completed
, new
, pending
and a file settings.dat
that contain sdPC����
;A�$��ٽB`.
I have customised Android environment variables to use an external storage:
export ANDROID_HOME="/Volumes/GregDev/macmini/android/sdk"
export ANDROID_USER_HOME="/Volumes/GregDev/macmini/android/home"
export ANDROID_EMULATOR_HOME="/Volumes/GregDev/macmini/android/home"
export ANDROID_AVD_HOME="/Volumes/GregDev/macmini/android/home/avd"
And excepted the error with emulator
, the installation appear to be workin: I can compile and run my react native app (I just need to launch the right emulator manually first).
My environment:
- MacOS Sonoma 14.3.1 (Mac Mini M1)
emulator --version
->Android emulator version 34.1.18.0 (build_id 11481568) (CL:N/A)
- Android Studio: Iguana 2023.2.1 (Build #AI-232.10227.8.2321.11479570)
I don't find any information on the internet about a related problem. Does anyone have any more information?
Thanks for help.