Monday, August 23, 2021

Android Studio Bumblebee Canary 9 available

Android Studio - Bumblebee | 2021.1.1 Canary 9 is now available in the Canary and Dev channels.


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 macOS). Otherwise, you can download it here.


For information on new features and changes in all preview builds of Android Studio Arctic Fox, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.

Improved resource shrinker


Support for apps with dynamic features


The default implementation of the Android resource shrinker has been updated in Android Gradle Plugin 7.1.0-alpha09. The new implementation supports shrinking apps with dynamic features.

 
Experimental further app size reductions


The new resource shrinker implementation can reduce the size of your shrunk app even more by modifying the resource table to remove unused value resources and references to unused file resources. The new resource shinker can delete unused file resources completely, reducing the size of your app more. This behavior is not enabled by default yet, but you can opt in to try it by adding the experimental option android.experimental.enableNewResourceShrinker.preciseShrinking=true to your project's gradle.properties file.

Please report any issues you find with the new resource shrinker or the experimental flag. To help diagnose issues, or as a temporary workaround, you can switch back to the previous implementation by adding android.enableNewResourceShrinker=false to your project's gradle.properties. The new shrinker replaces unused file-based resources with slightly different minimal files than the previous resource shrinker, but this is not expected to have any runtime impact.


The old implementation is scheduled to be removed in Android Gradle plugin 8.0.0.

General fixes and features


The bug fixes included in this update can be found here. For details of bugs fixed in each preview release, see previous entries on this blog.We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that it also affects you.