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:
emulator --version -> Android emulator version 34.1.18.0 (build_id 11481568) (CL:N/A)I don't find any information on the internet about a related problem. Does anyone have any more information?
Thanks for help.
Ok, this is what works for me on my mac:
Download Android Emulator (33.1.24) Stable from https://developer.android.com/studio/emulator_archive and overwrite the existing folder in ~/Library/Android/sdk (if that's where your sdk is).
Run emulator -list-avd manually, confirm the macOS permissions in System Preferences, and then run it a second time to see the INFO log line gone.
IF for some reason this doesn't work, go back to an older Stable release from that page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With