Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Things You Can Do With New Android Studio 2.2

DZone's Guide to

Things You Can Do With New Android Studio 2.2

The all new Android Studio 2.2 has around 20+ new features across every major phase of the development process like design, develop, build, and test.

· Mobile Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

Android Studio is the official integrated development environment (IDE) for Android platform development.

The all new Android Studio 2.2 has around 20+ new features across every major phase of the development process like design, develop, build, and test.

Design

  1. Layout Editor:  Now UI designing easier with the new user interface designer. The new blueprint mode helps to constuct the app UI structure very fast and by using the new properties panel you can adjust each widget visual attributes.

  2. Constraint Layout:  Without nesting multiple layouts your allow to create dynamic user interfaces with new Constraint Layout because it is a flexible layout manager for your app. It is compatible lower versions up to API level 9 (Gingerbread).

Develop

  1. Improved C++ Support: To compile C++ projects from Gradle now you can use CMake or ndk-build. You can Migrate projects from CMake build systems to Android Studio. You have also C++ support and bugfixes to the C++ edit and debug experience.

  2. Samples Browser: Android sample code referencing became easier. Within the code editor window you can find occurrences of your app code in Google Android sample code.

Build

  1. Instant Run Improvements: Instant Run is to make Android development much fast and lightweight. It was improved a lot the edit, build,run iteration cycles for developers.

  2. APK Analyzer: You can easily see the contents of your APKs to know the size of each component. This is more helpful when debugging multi-dex issues and you can compare two versions of an APK

  3. Build cache (Experimental): It is to improve build speeds and will help reduce both full and incremental build times. Just you need to add android.enableBuildCache=true to your gradle.properties file.

Test

  1. Virtual Sensors in the Android Emulator: With the new set of virtual sensors controls, now you can test Android Sensors such as Accelerometer, Ambient Temperature, Magnetometer and much more.

  2. Espresso Test Recorder (Beta): Now you easily create UI tests by recording interactions with your app. You can record your interactions with a device and you can add those to verify UI elements in a specific snapshot. You can run the test locally or by using Firebase Test Lab for Android.

  3. GPU Debugger (Beta): As of now it in Beta. Now you capture and replay a stream of OpenGL ES commands on your Android device. For better understanding of any OpenGL ES command you can also fully inspect the GPU state and you can debug graphical output.

Update/Download

  • For older versions of Android Studio, you can check for updates on the Stable channel or you can download Android Studio 2.2 from the official download page.

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:
android ,android app development

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}