Skip to content

Docker for Android SDK 27 with preinstalled build tools and emulator image

Notifications You must be signed in to change notification settings

docker-android-sdk/android-27

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker for Android SDK 27

Docker for Android SDK 27 with preinstalled build tools and emulator image

Edit from mindrunner/docker-android-sdk

Installed Packages

# sdkmanager --list
  Path                                     | Version | Description                             | Location
  -------                                  | ------- | -------                                 | -------
  build-tools;30.0.2                       | 30.0.2  | Android SDK Build-Tools 30.0.2          | build-tools/30.0.2/
  cmdline-tools;latest                     | 2.1     | Android SDK Command-line Tools (latest) | cmdline-tools/latest/
  emulator                                 | 30.1.5  | Android Emulator                        | emulator/
  patcher;v4                               | 1       | SDK Patch Applier v4                    | patcher/v4/
  platform-tools                           | 30.0.4  | Android SDK Platform-Tools              | platform-tools/
  platforms;android-27                     | 3       | Android SDK Platform 27                 | platforms/android-27/
  system-images;android-27;google_apis;x86 | 11      | Google APIs Intel x86 Atom System Image | system-images/android-27/google_apis/x86/

Usage

  • Interactive way

    $ docker run -it --rm --device /dev/kvm androidsdk/android-27:latest bash
    # check installed packages
    $ sdkmanager --list
    # create and run emulator
    $ avdmanager create avd -n first_avd --abi google_apis/x86 -k "system-images;android-27;google_apis;x86"
    $ emulator -avd first_avd -no-window -no-audio &
    $ adb devices
    # You can also run other Android platform tools, which are all added to the PATH environment variable

    To connect the emulator using adb on the docker host machine, start the container with --network host. You could also use scrcpy to do a screencast of the emulator.

  • Non-interactive way

    # check installed packages
    $ docker run -it --rm androidsdk/android-27:latest sdkmanager --list
    # list existing emulators
    $ docker run -it --rm androidsdk/android-27:latest avdmanager list avd
    # You can also run other Android platform tools, which are all added to the PATH environment variable

About

Docker for Android SDK 27 with preinstalled build tools and emulator image

Resources

Stars

Watchers

Forks