How to build emulator on MacOS

121 views
Skip to first unread message

Sinan Güneş

unread,
Feb 15, 2022, 6:47:04 PM2/15/22
to Android Building
I am using MacOS with Monterey. I have run following steps:
- repo init
- repo sync
- source build/env**
- lunch sdk_phone_x86_64
- make
- make sdk sdk_repo

All of those steps succeeded, however I am not able to see an emulator image in 
out/host/darwin**/sdk directory. In addition I am not able to run emulator command as well after those commands.
it gives error:

no initial system image for this configuration.

I might be missing very obvious step somewhere. please help me understand, and possibly fix the issue.

Regards

Sinan Güneş

unread,
Feb 16, 2022, 12:42:52 PM2/16/22
to Android Building
Using this branch instead of master:
`repo init -b android-12.0.0_r31`
and adding my MacOS SDK version to this file:

`build/soong/cc/config/x86_darwin_host.go`

DID the trick. just leaving here in case other may need help around as well.
Reply all
Reply to author
Forward
0 new messages