google / android-emulator-container-scripts

1.82k stars 256 forks source link

Documentation for Installing Android Cloud Emulator on Ubuntu 20.04 or 22.04 #342

Open adinath-devangles opened 1 year ago

adinath-devangles commented 1 year ago

Description

I successfully set up an Android Cloud Emulator using Docker containers in Ubuntu 18.04 LTS based on the official documentation.

Following are package versions used for installing the cloud emulator in Ubuntu 18.04 LTS:

However, since Ubuntu 18.04 LTS will no longer have standard support after June 2023, I'm looking for documentation on how to install the Cloud emulator on Ubuntu 20.04 LTS or Ubuntu 22.04 LTS with Python 3.10 or Python 3.9.

Could someone please provide the official documentation link for installing the Cloud emulator on either Ubuntu 20.04 LTS or Ubuntu 22.04 LTS?

shamun-khatri commented 1 year ago

@adinath-devangles hey adinath its great news that it is working for you but i am getting lots of troubles especially after running docker the following command give infinite logcat on terminal docker run \ -e ADBKEY="$(cat ~/.android/adbkey)" \ --device /dev/kvm \ --publish 8554:8554/tcp \ --publish 5555:5555/tcp \ us-docker.pkg.dev/android-emulator-268719/images/30-google-x64:30.1.2

and also can you able to guide me setting that me up?

adinath-devangles commented 1 year ago

Hi @shamun-khatri , can you please tell me what error is comming after docker run command. From my experience, if adbkey not found error is present in logs. Then you need to check first cat ~/.android/adbkey whether adbkey is present or not. if it is not present then you need to execute following commands

adb connect localhost:5555
adb devices

After executing above commands then you can find adbkey is created in above location. Then try running above docker run command