By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Google Brings Optimized Resource Shrinking in Latest Android Gradle Plugin
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Google Brings Optimized Resource Shrinking in Latest Android Gradle Plugin
News

Google Brings Optimized Resource Shrinking in Latest Android Gradle Plugin

News Room
Last updated: 2025/09/19 at 2:36 PM
News Room Published 19 September 2025
Share
SHARE

The latest version of the Android Gradle Plugin (AGP) introduces an optimized resource-shrinking approach that unifies code optimization and resource shrinking, achieving up to 50% reduction in app size for apps that share significant resources and code across different form factor, says Google.

In the new approach, Android’s long-standing optimizer R8, processes code and resource references at the same time, which makes it possible to identify all resources that are only referenced from unused code, and thus remove them along with the unused code.

This completely eliminates the need for the unconditional keep rules generated by AAPT2 (the resource packaging tool for Android) and provides much more fine-grained and precise information for discarding unused code and resources.

In previous versions, AAPT2 generated unconditional keep rules before R8 optimized the code, often causing them to reference unused code and preventing R8 from removing that code along with its associated resources.

“As mentioned, the new R8 optimization pipeline can achieve over 50% improvements in apps that share significant code and resources across different form factors, while also providing measurable benefits for smaller apps.

With the new optimized behavior, developers now have four distinct approaches to app optimization: no optimization, R8-only, R8 with resource shrinking, and optimized resource shrinking. Each successive step provides additional benefits.

Enabling R8 trims the size of your DEX, while enabling resource shrinking removes unused resources in both the res folder and in the resource table, but does not change the DEX size further, and finally, optimized resource shrinking further reduces the size by removing both resources and DEX code since it can trace references across the DEX and resource boundary

The new resource shrinking pipeline is available as an opt-in in the latest AGP 8.12.0. To enable it, you use the following AGP configuration:


android {
  buildTypes {
    release {
      isMinifyEnabled = true
      isShrinkResources = true
      …
    }
  }
}

The new behavior will be the default in the upcoming AGP 9.

Reducing an app’s size has several benefits, including faster download, quicker installation, and lower memory consumption. It also improves startup time, enhances rendering speed, and reduces ANRs (Application Not Responding behavior usually occurring when an app’s UI thread is blocked for too long).

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Huawei Watch GT 6 Pro vs GT 5 Pro: What’s new with the wearable?
Next Article Godot 4.4 Dev 6 – CollisionShape3D Debug Color Customization and More | HackerNoon
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Apple's best security feature is causing chaos on iPhone 17 launch day
News
How Coral Protocol Just Solved the Biggest Problem in AI Agent Development | HackerNoon
Computing
This $60 notebook saved me from buying paper (and another tablet)
News
Plug and Play’s second Seattle-area accelerator cohort includes six local startups
Computing

You Might also Like

News

Apple's best security feature is causing chaos on iPhone 17 launch day

5 Min Read
News

This $60 notebook saved me from buying paper (and another tablet)

8 Min Read
News

Is AI Capable of 'Scheming?' What OpenAI Found When Testing for Tricky Behavior

5 Min Read
News

Microsoft is raising prices on Xbox consoles in the US again

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?