A few hours ago, I made a blog post on how to get Firefox running on ChromeOS via a Project Crostini Container. I started getting questions asking if Android Studio works. Today I will be taking this one step further by providing instructions to get Android Studio Running on the Google Pixelbook via a ChromeOS container.
If you did not read the introduction to ChromeOS Containers Blog Post, take a few moments to give it a read before continuing. Furthermore this will currently only work for the Google Pixelbook at this time.
Getting Android Studio Running
Follow the steps below to get Android Studio running on your Chromebook.
- Access a ChromeOS Shell (Ctrl + Alt + T)
- Create a container by running
- vmc start devvm
- Provision Debian by running (replace <username> with your unix username (lower case, no spaces)
- run_container.sh –container_name=stretch –user=<username> –shell
- Upgrade the Debian Install by running
- sudo apt-get update
- sudo apt-get upgrade
- Install Android Studio by running the following
- sudo apt install -y gcc-multilib g++-multilib libc6-dev-i386 qemu-kvm mesa-utils
- sudo apt install -y wget unzip
- wget https://dl.google.com/dl/android/studio/ide-zips/3.1.1.0/android-studio-ide-173.4697961-linux.zip
- sudo unzip -q android-studio-ide-173.4697961-linux.zip -d /opt/
- rm android-studio-ide-173.4697961-linux.zip
- Launch Android Studio
- /opt/android-studio/bin/studio.sh
- Complete the Android Studio Setup Wizard (See Screenshots)
Yup, it is really that easy.
Relaunching Android Studio
Whenever you close your terminal window, you can follow the steps below to re-launch Android Studio.
- Access a ChromeOS Shell (Ctrl + Alt + T)
- Start your container by running
- vmc start devvm
- Start Debian by running (replace <username> with your unix username (lower case, no spaces)
- run_container.sh –container_name=stretch –user=<username> –shell
- Launch Android Studio
- /opt/android-studio/bin/studio.sh
Do you have a high resolution screenshot? Am wondering how the font rendering is performing with this setup. I assume under the hood it’s using an X11 server displaying to a wayland composer?
Yes, you should be able to right click on all of the images and view them in a new tab to see them at high resolution.
It is actually xwayland