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.
Google's introduction of Android N promises many great enhancements to the operating system, but we can't overlook some of the important awesome changes to the tools we use. The latest iteration of ADB brings some new features and significant performance improvements. Googler Elliott Hughes took to Google+ with details about the update, letting us know what we can look forward to from moving to the latest preview release of adb.
Maintaining an app has some similarities with keeping a website up and running. One day everything is fine. The next day, an update goes out that leaves thousands of people unable to do anything. Now they're ranting on Twitter, leaving poor reviews on Google Play, and giving you a massive dose of negativity and rage to encounter when you sit down at your computer.
Remember back in December (and January) when Packt Publishing gave away a couple free ebooks focused on Android development? The one-a-day promotion has been going strong since, but the books haven't exactly been targeted at the OS on our phones. But great news: this whole week is dedicated to mobile development!
The current freebie is all about showing love to both sides of the phone war – it's Xamarin Cross-platform Application Development. But you better hurry over and claim it, this particular book will expire in just over 5 hours. (Sorry, we saw this one a little late).
While the free book is enough reason to drop by, there's something more interesting afoot in this promotion.
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.
Developers have plenty of great new APIs and features coming with Android N, but perhaps the best thing to look forward to is at the language level itself. Starting with the preview SDK due out today, some of the language features of Java 8 will be supported by the Jack compiler. This will bring things like support for lambdas, default and static methods, streams, and functional interfaces. Google is also declaring that the Jack compiler will also be able to remain more up-to-date with Java language features in the future.
One of the top requests from developers over the last few years has been for a more rapid uptake of new language features for Java, many of which would allow for more efficient use of development time and ultimately easier to read code.