What's new with Android Studio 2.2

Source: Internet
Author: User

Reprint: http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652039482&idx=1&sn= 9aa9b204af34baabd2fdbba649e20d79#rd

Android Studio 2.2 is now available for download. Android Studio 2.2 has been previewed on Google I/O 2016 and is the latest version of the IDE used by millions of of Android developers around the world.

This release includes enhancements for three main themes: speed, intelligence, and Android platform support. Quickly and intuitively create an app user interface with features such as the new layout editor to speed up development. Develop smarter with the new APK parser, enhanced Layout checker, extended code analysis, IntelliJ 2016.1.3 features, and more.

Finally, as a full version of Android app Development Ide,android Studio 2.2 supports all the latest developer features in Android 7.0 Nougat, such as Code AutoComplete, to help you add a variety of Android platform features, such as multi-window support, Qui CK Settings API or redesigned notifications, and of course the built-in Android Emulator for testing these features.


In this release, we have integrated the Android frameworks with the IDE to create a constrained layout. This new layout manager is powerful to help you design large and complex layouts in a flat, streamlined hierarchy. Constraintlayout is built at the same time as the new layout editor and can be integrated into your app like a standard Android support library.

Android Studio 2.2 has added more than 20 features, covering every major stage of the development process: design, development, build, and test. From using the new constraintlayout design UI, to developing C + + code with the Android NDK, to building with the latest Jack compiler, to creating Espresso test cases for your app, Android Studio 2.2 is your fault-tolerant The latest version ever.

Some of the most distinctive features are detailed below:



Design

Layout Editor:

Now, with the new user interface designer, it's easier to create an Android app user interface. Use the new blueprint pattern to quickly build the structure of your app's UI, and use the new properties panel to adjust the visual properties of each widget.



Constrained layout:

This new layout is a flexible application layout manager that allows you to create dynamic user interfaces without nesting multiple layouts. It has been back-compatible to Android API Level 9 (gingerbread). Constrained layouts are best paired with the new layout editor in Android Studio 2.2.



Development

Improved C + + support:

You can now compile C + + projects from Gradle using CMake or Ndk-build. You can now seamlessly migrate your projects from the CMake build system to Android Studio. The New Project Wizard in Android Studio provides support for C + + and also has a number of bug fixes for the C + + editing and debugging experience.

▲ C + + code editing and CMake support

Example Browser:

It is now easier to reference the Android sample code via Android Studio 2.2. Find your app code in the Google Android sample code in the Code Editor window to help you quickly launch app development.


▲ Sample Code Menu


Build

Instant Run Improvements:

Instant Run, introduced in Android Studio 2.0, is one of our major long-term investments to make Android development fast and easy. Since its release, it has significantly shortened the editing, building, and running iterations of many developers.

In this release, we have made a number of improvements to the stability and reliability of the Instant Run. If you have previously disabled Instant Run, it is recommended to re-enable and if you still encounter problems, please let us know. (Settings→build, execution, deployment→instant Run [for Windows/linux], preferences→build, execution, deployment→i Nstant Run [for OS X].


▲ Enable Instant Run

APK Analyzer:

Easily check the contents of the APK to see the size of each component. This feature is useful when debugging multi-dex problems. In addition, the APK parser allows you to compare two versions of the APK.



Build cache (Experimental):

We will continue to invest by introducing new, experimental building caches that help to shorten the time to build and build faster with full and incremental builds. Simply add the android.enablebuildcache=true to the Gradle.properties file.


▲ Build Cache Settings

Test

Virtual Sensors in Android Emulator:

Android Emulator now includes a new set of virtual sensor controls. Now use these new UI controls to test your Android sensors, such as accelerometers, ambient temperatures, magnetometers, and more.

Espresso Test Recorder (Beta):

The Espresso Test Recorder can be used to record interactions with your app, easily create UI tests, and then output UI test code for you. Record your interactions with the device and add assertions to validate the UI elements in a specific snapshot of your app. The Espresso Test Recorder then extracts the saved records and automatically generates the corresponding UI tests. You can run the test locally on the continuous integration server or in the Firebase Android test lab.

GPU Debug Program (Beta):

The GPU debugger is now beta. You can now capture the OpenGL ES command stream on your Android device and then replay the command stream within Android Studio to analyze it. You can also fully check the GPU status of any of the specified OpenGL ES commands to better understand and debug your graphics output.

Briefly recap

Android Studio 2.2 includes the following and other key features:

Design

    • Layout Editor

    • Constrained layout

    • Layout Checker (experimental)

    • PSD file support in Vector Asset Studio


Development

    • Firebase Plug-in

    • Updated code analysis and Lint checks

    • Enhanced barrier-free feature support

    • Improved C + + support for editing and debugging

    • IntelliJ 2016.1.3 Platform Update

    • Sample Browser

    • Improved font rendering

Build

    • Jack Compiler improvements

    • Java 8 Language Support

    • C + + ndk-build or CMake

    • Merged manifest File Viewer

    • Build Cache (Experimental)

    • OpenJDK Support

    • Instant Run Improvements


Test

    • Espresso Test Recorder (Beta)

    • APK Analyzer

    • GPU Debug Program (Beta)

    • Virtual Sensors in Android Emulator

For more information about Android Studio 2.2, see previewing a blog post.

Getting Started Guide


Download

If you are using an earlier version of Android Studio, you can check for updates on the Stable stable release channel in the Navigation menu ("Help" → "Check for update" [Applies to windows/linux], or "Android Studio → Check for Updates [applies to OS X].

You can also download Android Studio 2.2 from the official download page. To take full advantage of all the new features and improvements in Android Studio, you should also update the Android Gradle plugin version in your current app project to 2.2.0.


Next version

Thanks for all the efforts made in this version of the Android developer community. We would like to thank you for your enthusiastic submissions and ongoing feedback, and many of the new features in this release are inspired by your valuable comments, and thank you for actively using Canary and beta versions and submitting bug reports.

We all want Android Studio 2.2 to be the best version, in addition to many new features, there are several stability and performance fixes. We will continue to improve the next version, we hope to solve the problem of feedback, improve the quality and stability of existing features, to help you improve development efficiency.


We appreciate any feedback you have about the features you like, the problems you have, or the features you want to see. Contact Us (Android Studio development team) on our Google + page or Twitter.

What's new with Android Studio 2.2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.