Android Studio development environment with UI/X support.
Built from Dockerfile.
The Dockerfile builds a basic Android Studio version, which you must then augment with downloaded SDK libraries. You can skip that step by using this prebuilt image which has various SDK API versions ready-installed. Contains max Android SDK API 20, and weighs in at 6GB. Other SDK versions can also be installed.
Applies some limits to X access. This build assumes your user uid/gid are 1000.
For general use it is recommended to run with --rm and not update the container, and instead share a host folder containing your sources. For example to map /data to /data run with:
docker run -ti --rm -e DISPLAY=$DISPLAY -v /data:/data -v /tmp/.X11-unix:/tmp/.X11-unix kelvinlawson/android-studio
Changes to the Android Studio / SDK Manager etc will not be saved in the container using the above method.
If you want to make changes inside the container (e.g. to install a new SDK API version via SDK Manager) then run without the --rm flag, and commit the changed container after.
You may also perform USB device debugging by exposing /dev/bus/usb to the container and adding your device info to /etc/udev/rules.d/51-android.rules. The container already contains a udev rules file which you would have to edit and then commit the changes to a local image. When starting the container add the parameters --privileged -v /dev/bus/usb:/dev/bus/usb:
docker run -ti --rm -e DISPLAY=$DISPLAY --privileged -v /dev/bus/usb:/dev/bus/usb -v /data:/data -v /tmp/.X11-unix:/tmp/.X11-unix kelvinlawson/android-studio
Content type
Image
Digest
sha256:bb672bc34…
Size
1.6 GB
Last updated
almost 11 years ago
docker pull kelvinlawson/android-studio