Back in May at the Google I/O 2019 developer event, Google launched a preview version of Android Studio for Chrome OS. The preview version is gone and now replaced with the official Android Studio 3.5, released on Monday, making Chromebooks a “first-class citizen” for Android app development.
Well, mostly first-class, that is.
Yes, it’s easy to install Android Studio 3.5 thanks to a downloadable Debian package that you can use the native Chrome OS Files app for installation, but there’s still no Android device emulation feature available.
It’s possible there may never be one due to the way Crostini is architected: It runs Debian Linux in a container, which itself is running in a virtual machine (VM) and the Android Device emulator needs a VM. Currently, you can’t run a VM inside of a VM, i.e.; in a Linux container on a Chromebook.
Regardless of that, I did run through the install on my new Acer Chromebook Spin 13 with 16 GB of memory. Coding is the main reason I’ve moved my development activities from the Pixel Slate with its lower-powered Intel Core i5 processor and 8 GB of RAM.
I can already see the performance difference when loading up a small project and building an app. And thanks to the Cog extension, I also see all four processor cores and eight threads in action when building an app, as well as that I’m likely using more than 8 GB of memory when doing so.
Since there’s no Android device emulator, however, devs will have to take advantage of the USB device support in Linux that was added to Chrome OS 75. With it you can connect an Android device to your Chromebook and Android Studio will use the Android Debug Bridge (ADB) tools to install an in-development app to the phone for testing. It’s not an ideal solution, but it works.
There are a ton of fixes, performance enhancements and general improvements in Android Studio 3.5, which you can read in the release notes here.
The bigger deal, to me anyway, is the official Chrome OS support which adds a broader range of devices that developers can now code Android apps on. Just keep in mind that if you plan to build Android apps on your Chrome OS device, you’ll want to stick with the list of recommended devices for an optimal experience.
12 Comments
Still rather surprised that Pixelbook is not a recommended device.
– Mike
You and me both! 😉
Kevin just a heads up for you and others doing Android dev on ChromeOS that an issue with USB devices connected into containers is in the process of being fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=987500#c15
Kevin just a heads up for you and others doing Android dev on ChromeOS that an issue with USB devices connected into containers is in the process of being fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=987500#c15
Thanks for the heads up!
I’m not a developer so I don’t need the full Android Studio, but I could use ADB and fastboot with my Chromebook and phone from time to time. Is there a way to install and run only these components?
Absolutely! Hit are the downloads for the SDK Platform Tools, which provide ADB, fastboot and systrace: https://developer.android.com/studio/releases/platform-tools
Thanks. Works as expected. One less reason to use the iMac.
Or just type this into the Command window in Android Studio
~/Android/Sdk/platform-tools/adb connect 100.115.92.2:5555
And you can run your Android Studio project directly on your Chromebook. You will have to be in Developer mode for this to work though.
Awesome! The only reason I was keeping my Windows laptop around was for this. Now I don’t have to, thanks!
I’m pretty sure that ARCVM which will use the terminal virtual machine well fix the Android emulator based on a couple commits I was reading it sounds like you’ll be able to make multiple Android containers similar to how you can with Linux right now and even emulate specific devices.
I have a “Bug” or 3, (on phone & Chromebook 15), so point is mute to me.
Just want them off, these things are self-
generating cryto-miner’s, on my devices.
if I have to build something to remove them, will definitely try.