ANDROID AVD "emulator" package must be installed
Asked Answered
H

2

7

I want install new device in my docker container.

I had dowload new sdk

./sdkmanager "system-images;android-23;google_apis;x86"

I had accept all licences

./sdkmanager --licenses

And now I want create a new emulator with AVDMANAGER

./avdmanager create avd -n test -k "system-images;android-23;google_apis;x86" --abi google_apis/x86 --force

When I launch command, I have this message

Do you wish to create a custom hardware profile? [no]

I press yes and I have this error

Error: "emulator" package must be installed!

Can you explain me how I can install this package ?

Heeled answered 6/11, 2018 at 7:27 Comment(0)
B
13

The solution is:

./sdkmanager --channel=3 emulator
Blastogenesis answered 6/11, 2018 at 7:27 Comment(2)
What does the command?Harberd
@Harberd it installs necessary packages for the emulator. They have package on top of quemu to properly act as an android emulator, hardware specs and stuff. You can see after you run this an "emulator" directory is created under your SDK_HOME.Gulledge
H
0

I encountered the same error on my MacBook (M1-Chip [ARM-architecture]).

It was because the package emulator is only available for on x86_64-architecture.

Try it on a different machine/ architecture.

Sources:

Harberd answered 21/9 at 10:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.