If you already have an Android Studio build on the Canary or Dev channel, you can get the update by clicking Help > Check for Update (or Android Studio > Check for Updates on Mac). Otherwise, you can download it here.
This update includes bug fixes and improvements, such as the following:
- New DEX compiler: by default, Android Studio now uses a new DEX compiler called D8, which was announced on the Android Developers Blog.
- Sample native processes with CPU Profiler: the CPU Profiler now includes a default configuration to record sampled traces of your app's native threads. You can use this configuration by deploying your app to a device running Android 8.0 (API level 26) or higher and then selecting Sampled (Native) from the CPU profiler's recording configurations dropdown menu. After that, record and inspect a trace as you normally would.
- Updates to Lint: When you run lint from the command line, lint now also analyzes your Kotlin classes. For each project that you would like to run lint on, make sure to include Google's Maven repository in the top-level build.gradle file, as shown below:
allprojects {
repositories {
// The order in which you list these repositories matter.
google()
jcenter()
}
}
- New Layout Editor action to convert views from one type to another. From the component tree pane in the Layout Editor, right-click on a component and select Convert view. In the dialog that appears (shown below), select a suggested view type and click Apply. If the IDE doesn’t suggest the type of view you want, search for it using the text field near the top of the dialog.