简体   繁体   中英

Android: How to solve the emulator error while installing it on ec2 instance?

i am trying to run following command

   $ANDROID_HOME/tools/bin/sdkmanager "emulator"

getting error Warning: Failed to find package emulator

trying to install android SDK viva command line I did install a build tool, platform tool . but when I am trying to install emulator its shows no package available. When I run /sdkmanager --list it's not showing emulator in Available Packages. Does the emulator depend upon CPU n OS?

In my case, I can not install build-tools on an infrequent Ubuntu through cmdline-tools, I soluted by a special way, steps as follows:

1.Run ./sdkmanager "emulator" on another common Ubuntu which support.

2.Then a folder named emulator will be created at the sdk root path.

3.Copy this emulator folder to the previous Ubuntu at the same path.

4.Now, I can install build-tools through ./sdkmananger "build-tools;29.0.3" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM