Source: Android Studio 3.2 Canary from Android Developer
Today at Google I/O 2018 we announced the latest preview of Android Studio 3.2 which includes an exciting set of features that support the Android P Developer Preview, the new Android App Bundle, and Android Jetpack. Download Android Studio 3.2 from our canary release channel today to explore one of the most feature rich releases of the year.
Android Jetpack is a set of libraries, developer tools and architectural guidance to help make it quick and easy to build great Android apps. It provides common infrastructure code so you can focus on what makes your app unique. Android Studio 3.2 includes a wide set of tools that support Jetpack from a visual Navigation Editor that uses the Navigation API, templates for Android Slices APIs, to refactoring tools to migrate to the new Android support libraries in Jetpack — AndroidX.
The canary 14 release of Android Studio 3.2 also supports the new Android app model that is the evolution of the APK format, the Android App Bundle. With no code changes, Android Studio 3.2 will help you create a new Android App Bundle and have it ready for publishing on Google Play.
There are 20 major features in this release of Android Studio spanning from ultra fast Android Emulator Snapshots, Sample Data in the Layout Editor, to a brand new Energy Profiler to measure battery impact of your app. If any of these features sound interesting, download the preview of Android Studio 3.2 today.
To see these features demoed in action and to get a sneak peak at other features we are working on, check out the Google I/O 2018 session – What’s new in Android Development Tools.
Below is a full list of new features in Android Studio 3.2, organized by key developer flows.
android.enableJetifier = trueflag in your
gradle.propertiesfile. While the refactoring action supports common project configurations, we recommend that you save a backup of your project before you refactor. Learn more.
AndroidX Refactoring Support
Design Time Sample Data
New Material Design Components
Slices Provider Template
CMakeList Code Completion
What’s New Assistant
com.android.tools.build:gradle:3.2.0-alpha14), you can rebuild your code as an app bundle and get the benefit of smaller APKs based on language, screen density, and ABIs with no changes to your app code. To get started, navigate to Build → Build Bundle / APK or Build → Generate Signed Bundle / APK Learn more.
Build Android App Bundle
android.enableR8=trueto your gradle.properties file. R8 is still experimental, so we do not recommend publishing your app using R8 yet. Learn more.
Enable R8 in Android Studio
./adb emu avd snapshot load snap_2018-04-29_00-01-12) or from within Android Studio.
Android Emulator Snapshots
./adb emu screenrecord start --time-limit 10 /sample_video.webm), and from Android Studio.
Screen record in Android Emulator
Virtual Scene Camera in Android Emulator
ADB Connection Assistant
startMethodTracing(String tracePath), and stops recording when your app calls
stopMethodTracing(). Similarly, you can also now automatically start recording CPU activity on app start-up by enabling this option in your run configuration.
JNI Reference Tracking
To recap, the latest canary of Android Studio 3.2 includes these new major features:
Check out the preview release notes for more details.
Download the latest version of Android Studio 3.2 from the canary channel download page. If you are using a previous canary release of Android Studio, make sure you update to Android Studio Canary 14 or higher. If you want to maintain a stable version of Android Studio, you can run the stable release version and canary release versions of Android Studio at the same time. Learn more.
To use the mentioned Android Emulator features make sure you are running at least Android Emulator v27.3+ downloaded via the Android Studio SDK Manager.
We appreciate any early feedback on things you like, and issues or features you would like to see. Please note, to ensure we maintain product quality, the features you see in the canary channel may not be available in the next stable release channel until they are ready for stable usage. If you find a bug or issue, feel free to file an issue. Connect with us — the Android Studio development team ‐ on our Google+ page or on Twitter.