Yesterday's Google I/O keynote gave an introduction to some of the great new improvements to Android Studio 2.2, but it only scratched the surface. Today, the Android Tools Team took to the stage again to detail even more about the things they've been doing to make work easier for developers. Topics ranged from new tools like the APK Analyzer and Espresso Test Recorder to big improvements in the code editor and inspectors. We can't cover everything, but here is a summary of the main topics presented today.
New Layout Editor
One of the two hot topics introduced during the keynote is a brand new layout editor.
While all major tech companies use their flagship events to announce new products, Google doesn't shy away from putting developer tools on stage. And keeping with a common theme lately, there's a preview release for the next Android Studio. Version 2.2 includes some immediately popular and often-requested additions to the IDE.
With last month's release of the Android N Preview, the Tools team launched a preview release of Android Studio 2.1. Not only did the new version add support for the N Preview SDK, but it also brought a few important important and welcomed additions, including adoption and support for many of the language features in Java 8, a semi-official switch to the Jack compiler, an updated New Project wizard, and further improvements to the new and faster Android Emulator. As of today, Android Studio 2.1 has been promoted to Stable and is available to all developers.
The biggest advantage of updating and switching to the Jack compiler, aside from playing with new Android N APIs like Launcher Shortcuts, is probably the addition of Lambda Expressions.
Yesterday you read about (and maybe understood) the new Java 8 language features coming with the Android N Developer Preview. One of the prerequisites of using these improvements is the latest version of Android Studio. The IDE was briefly mentioned in that article, but we thought it deserved a little more attention for both the improvements and some of the caveats to updating right now.
The Android Studio 2.1 Preview 1 is based on the current 2.0 version in the beta channel. The changelog is basically a roadmap to supporting the new features promised with Android N: support for Java 8, improved support for the Jack compiler, and an updated New Project wizard to generate projects targeting the Android N Preview.
Kotlin has been emerging as a programming language to keep a close eye on. It started as an internal project at JetBrains back in 2011 and was released early the next year. Taking inspiration from both classic C-based languages and a number of modern alternatives like Scala, Kotlin is branded as a "pragmatic" language and modeled to encourage smarter coding and easier readability. JetBrains has been tiptoeing up to an official v1.0 release for a few months, and today, it's finally here.
While it's still a fledgling language, Kotlin has earned some enthusiastic supporters among the Android development community, even a few Googlers have discussed using it in projects.
The Android Studio team has been kicking out preview builds at a fevered pace since the first 2.0 preview hit the scene near the end of November, and it's finally paying off as the first real Beta is now rolling out. (The first beta has an issue, so this is actually labeled Beta 2). The jump from v1.5 to v2.0 is enough to suggest that this could be the most ambitious update to the IDE since it was launched, but the feature list confirms it. We've already covered some of the biggest features: instant run, GPU profiling, and a massively faster and more functional emulator.
Now that Android Studio is faring quite well for its core necessities, the tools team is tackling some of the bigger challenges. A couple of weeks ago, they featured a new ability to deploy a limited set of changes to apps without fully restarting them. This week they're shooting to take on one of the longest and most requested items on the list: a faster and more useful emulator.
The biggest boost to speed can be seen while running Android 6.0 on the new emulator. This comes from newly added support for Symmetric Multi-Processing (SMP), which allows the emulator to take full advantage of multiple processor cores on a computer.
Every developer has gone through a long afternoon of making a bunch of tiny changes to their app, rebuilding and running it, then repeating the same steps just to get back to a point where they can test the changes they just made. Forget it, those days are done! Android Studio 2.0 just hit the Canary channel and its headlining feature allows you to push changes from your computer to an app while it's running and see results right away. Also joining the latest release is a brand new GPU Profiler tool that can make OpenGL ES development significantly easier.
The Instant Run feature has been mentioned previously during Google I/O 2015, but it has been under wraps until now.
Android Studio v1.5 just rolled out to the stable channel today and it's absolutely packed with a feature. Truth is this release was mostly focused on bug fixes, performance improvements, and other fine tuning. Of course, for a tool used in professional software development, those certainly aren't bad things. Take a look as Reto Meier explains the changes and trolls teases Android developers with a mystery box that surely must include new language support, or a fully functional theme editor, or... something more likely.
The one notable addition can be found in the Memory Profiler. It's now capable of detecting leaked activities while testing.