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.