Android Studio 3.2 Beta 3 brings navigation editor, Android app bundle and more


Google has released Android Studio 3.2 Beta 3 in the Beta channel. This release brings a new wizard panel and navigation editor, Android Jetpack, AndroidX migration, Android App Bundle, new Android profiler, lint check, and more.

A new Assistant panel has been added to Android Studio, which informs about the latest changes. When Android Studio initializes, the panel opens if it detects that there is new information to display. To open the Assistant panel, click Help> What’s New in Android Studio. The Android Studio IDE kernel has been updated with improvements from IntelliJ IDEA up to version 2018.1.1, which is primarily a bugfix update, including a significant fix that restores automatic checking for updates. up to date.

The new navigation editor is an experimental feature that aims to simplify the design and implementation of navigation between destinations (a specific screen in the application) in an application. Android Jetpack is a collection of libraries, tools, and architectural tips to help developers build great apps faster and easier. The navigation editor integrates with the navigation architecture component of Android Jetpack to provide a graphical view for building the navigation structure of an application. To enable the Navigation Editor, click File> Settings (Android Studio> Preferences on Mac), select the Experimental category in the left panel, and check the Enable Navigation Editor box.

As part of Jetpack, Google is migrating Android Support Libraries to a new Android Extensions Library (AndroidX) using the androidx namespace. Android Studio 3.2 has provided new functionality to help developers in this process; to migrate an existing project to AndroidX, developers should choose Refactor> Migrate to AndroidX. Developers who want to start using AndroidX libraries immediately and do not need to convert existing third-party libraries can set the android.useAndroidX flag to true and the android.enableJetifier flag to false.

Android App Bundle is a new app publishing format to improve the way developers publish apps. Google Play Dynamic Delivery uses the app bundle to generate and deliver APKs optimized for each user’s device configuration, so each user downloads only the code and resources they need to run the app. . Plus, developers don’t need to create, sign, and manage multiple APKs, and users get smaller apps.

Slices are user interface templates that can display rich, dynamic, and interactive content from your app from the Google Search app and in other places like Google Assistant. Slices can help users complete tasks by enabling engagement outside of the full screen app experience.

Some new features have been added to Android Profiler in Android Studio 3.2, such as the Energy Profiler which displays a visualization of an app’s estimated power consumption, which is useful for understanding the impact of an app. on an Android device.

Developers can inspect device processor and system thread activity using the new system trace in the processor profiler. Additionally, it’s useful for investigating system-level issues, such as UI janking, and you can visually mark important code routines in the profiler timeline by instrumenting your code with the Trace class.

With Android Studio 3.2, developers can inspect JNI references using the memory profiler. It is possible to inspect memory allocation for JNI code in applications deployed on a device running Android 8.0 (API level 26) or higher.

Another new feature available only for apps deployed on Android 8.0 or higher is the ability to record processor activity when starting the app. Indeed, it is possible to export your CPU activity recording in the form of a “.trace” file. You can import and inspect “.trace” files created with Debug API or CPU Profiler in Android Studio 3.2.

Android Studio 3.2 includes a series of new and improved features for lint checking. New lint checks have been added to make sure your Java and Kotlin code interact well. These checks include checking for the presence of nullability annotations, placing lambda parameters last, and so on. You need to add the following parameters to your build.gradle to enable it:


android {
    lintOptions {
        check 'Interoperability'
    }
}

Other improvements made by Android Studio 3.2 include:

  • Data Link Library Version 2
  • R8, a new code reduction and obfuscation tool that replaces ProGuard
  • Improved editor for CMake build files with syntax highlighting and code completion, code reformatting and secure refactoring
  • Navigating External Header Files
  • Native Multidex enabled by default
  • AAPT2 moved to Google Maven repository
  • Android P Developer Preview
  • Sample Data, which allows developers to use placeholder data to aid in designing an application
  • Updated material design
  • Snapshots of the emulator; with Quickboot it is possible to create snapshots in any state of the emulator and start them in less than two seconds

If Android Studio is configured to receive updates on the beta channel, you can get the update by choosing Help> Check for Updates (Android Studio> Check for Updates on Mac). Otherwise, you can download it here.


Comments are closed.