Android Studio 2.1 stable release supports Android N developer preview
The stable version of Android Studio 2.1 is now available and includes updates to the platform IDE, build system and Android emulator wizards. The Android Studio development team says the latest release provides access to new Developer Preview features and APIs, including the new Jack compiler and Java 8 language support. Android Studio 2.1 includes improvements Performance Manager for Instant Run which provides faster build and deploy speeds.
Highlights of new Android Studio 2.1 features:
N Developer Preview Support
For developers who want to test and validate an application with Android N Developer Preview, Android Studio 2.1 is the suggested IDE to do so. Developers can access the latest versions of the preview SDK, experience the features of the new Java 8 support, and use the official Android emulator capable of running N developer preview emulator system images for easy testing .
Android Studio 2.1 release includes support for the new Jack compiler and support for Java 8. With Jack compiler, lambdas, method references, compile-time type annotations, data types intersection and type inference are available on all versions of the Android platform. Default and static methods and repeatable annotations are available on Android N and higher. To use Java 8 language features when developing with N Developer Preview, developers must use the Jack compiler.
Developers can access rapid change, build and deploy cycles with Android Studio 2.0, as Instant Run can now update incremental changes to application code much faster. Instant execution and general build speed are now faster thanks to two new features: incremental java compilation and in-process dex.
In previous versions of Android Studio, a single line of Java code change will cause all Java sources in the module to be recompiled. Now in Android Studio 2.1, incremental Java compilation is enabled by default to reduce compilation time by compiling only what is needed.
Build times are now faster due to the use of in-process dex, which converts class files to dex files in the Gradle daemon process. This avoids the processing operation of creating separate dex processes. To use this feature, developers will need to increase the amount of memory available to the Gradle daemon to at least 2 GB (1 GB is the default). This feature will help speed up incremental and full releases.
Subscribe to App Developer Magazine for just $5.99 per month and enjoy all these benefits.