Paul Krill
Editor at Large

Android Studio 2.1 eases path to Android N development

news
Apr 28, 20162 mins

Google's Android IDE allows developers to sample APIs and features of the Android N Developer Preview

Google is positioning its Android Studio 2.1 IDE, released this week, as a mechanism for building applications for its Android N Developer Preview version, which was launched in March.

Version 2.1 updates wizards, the build system, and emulator. Developers can sample APIs and features like the Jack (Java Android Compiler Kit) compiler, which compiles Java source code into Android dex bytecode, in the Android N preview. “Installing the Android N preview SDK requires Android Studio 2.1,” said Reto Meier, Android developer advocate.

The IDE now supports Java 8 language features in Android N, including lambda expressions and method references. It improves Instant Run, although the Jack compiler currently does not support it.

Compilation and build times have been improved as well. “In previous versions of Android Studio, a single line of Java code change will cause all the Java sources in the module to be recompiled,” said Jamal Eason, Android product manager. “Now, in Android Studio 2.1, incremental Java compilation is enabled by default to reduce compilation time by compiling only what is needed.”

Google is improving build times by using in-process dex, converting class files to dex files within the Gradle daemon process, Eason said. “This avoids the costly processing operation of creating separate dex processes. To use this feature, you will need to increase the amount of memory available to the Gradle daemon to at least 2GB (1 GB is the default). ”

Version 2.1 also includes a number of bug fixes and stability improvements, especially for users of the Android N preview SDK, Meier said.

Android Studio is Google’s official IDE for building Android mobile applications. It’s based on the IntelliJ Idea IDE and features a Gradle-based build system.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author