Matthis.h
Matthis.h

Reputation: 909

ANDROID AVD "emulator" package must be installed

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 ?

Upvotes: 7

Views: 7894

Answers (2)

Samuel
Samuel

Reputation: 429

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:

Upvotes: 0

Suraj Rao
Suraj Rao

Reputation: 29614

The solution is:

./sdkmanager --channel=3 emulator

Upvotes: 13

Related Questions