Guides
Google Play's DEX Code Optimization Requirement: Does a Website App Need to Act?
From February 2027 Google Play expects optimized app code and sets new memory thresholds. Whether your website app is affected starts with one number: its DEX size. Checked November 2026.
The Google Play DEX code optimization requirement applies to a website app only if the app carries a meaningful amount of compiled code: more than 10 MB of DEX for apps. Above that line, from February 2027 uploads need at least 25% each for optimization, obfuscation and shrinking. Check your DEX size first, because it decides whether you have any code work to do. New memory thresholds arrive at the same time and are measured separately. Checked November 28, 2026.
What changes on Google Play in February 2027?
Google's technical quality requirements page lists two upcoming rules for that month: a minimum level of code optimization, and new "bad behavior" thresholds for memory use. The page gives the month, not an exact day. It also says these requirements are not optional, and that missing one can affect an app's visibility and publishing capabilities on Google Play.
Starts
Feb 2027
exact day not stated
DEX size floor for apps
10 MB
games: 50 MB
Minimum for each score
25%
optimization, obfuscation, shrinking
This is a different rule from the 16 KB page size requirement, which concerns native libraries, and from the target API level requirement. Passing one says nothing about the others.
What is DEX code, and does a website app have much of it?
DEX files hold the compiled code that runs your app, typically from Java and Kotlin. Google's Android vitals page on code optimization counts the total DEX size uncompressed. Your website's pages, scripts and images stay on your server, so they are not part of that number when the app simply loads your site.
The app around your site is what counts: its own code plus every library it includes, such as those for notifications, analytics, ads or payments. We have no reliable figure for how large website-app builds are in general, and builders differ. Do not guess from the download size either, since icons and other files add to it. Read the DEX number for your own build.
How do I check my app's DEX size and optimization scores?
- 1
Open the app bundle explorer
In Play Console, select your app and open the app bundle explorer. Google says it shows the DEX size and optimization percentages for each app bundle you upload.
- 2
Pick the live build
Choose the bundle your users actually have, then the newest one you plan to release.
- 3
Compare the size with 10 MB
Under the floor, Google says the code optimization requirement is not enforced for apps. Check again after any rebuild that adds features.
- 4
If over, read all three scores
Optimization, obfuscation and shrinking each need to reach 25%. Two passing scores are not enough.
- 5
Check a file before uploading
A developer can run the Android CLI command android analyze on the AAB. Google says it reports the size and percentages that match Android vitals.
You need the AAB, not only the APK, for the last step. The difference between the two is explained in APK vs AAB for a website app.
What should I do with the result?
| What you see | What it means | Next step |
|---|---|---|
| DEX size under 10 MB | The code optimization thresholds are not enforced for this build | No code change for this rule. Recheck after rebuilds |
| Over 10 MB, all three scores 25% or more | The build meets the stated minimums | Test the release build and keep the settings |
| Over 10 MB, scores near zero | The shrinking tool may not be switched on | Ask the builder or developer to enable it and rebuild |
| Over 10 MB, one score under 25% | Some rules in the build may be keeping too much code unchanged | Ask for a review of the keep rules |
| No numbers visible | You may be looking at the wrong upload or account | Confirm the bundle, then ask whoever publishes the app |
The usual tool is R8, which comes with Android's build system, though Google says other optimizers are allowed. This is a build setting, so editing your website cannot change the scores. If you hired someone or used a builder, send them the three percentages and the DEX size, and ask for the same numbers from a test build.
Test that new build properly. Shrinking removes and renames code, and a wrong setting can break a feature only in the release version. Tap through sign-in, notifications, file uploads and payment screens on a real phone before publishing. Google also notes that for builds made with a recent Android Gradle Plugin (the latest patch of 8.10 or higher), it reads the scores from a report file inside the bundle; for older setups it estimates them.
What are the new memory limits, and can a website app exceed them?
Play will watch two measures: overall memory use and memory held by images (bitmaps). It judges the 90th percentile over the last 28 days of data from users who opted in, on phones and tablets. Limits depend on the phone's memory and on what the app is doing.
GB of anonymous memory plus swap, 90th percentile. Source: Play Console Help, checked November 2026
Background limits are lower, from 1 GB on 4 GB phones to 2 GB on 16 GB phones. For images, the thresholds are more than 200 MB while the app is in the background and more than 400 MB when it is cached. Games have their own, higher memory limits.
We cannot tell you how close any particular website app comes to these numbers. Open Android vitals in Play Console and look under Memory. If your app is near a limit, heavy pages are a sensible place to start looking: very large images, long endless-scroll lists, autoplaying video and many third-party scripts. That is our suggestion, not a Google rule. Fixing them helps your mobile site too.
What should I do before February 2027?
- 1Record the DEX size of your current release.
- 2If it is over 10 MB, record the three optimization scores.
- 3Open the Memory section of Android vitals, if it has data for your app.
- 4Ask your builder or developer in writing whether their builds meet the thresholds.
- 5Schedule a rebuild and a full device test well before February, not in the final week.
- 6Check Google's page again, since details can change before enforcement.
The same Google page also announces a sign-in requirement for April 2027 for apps with user accounts. If your site has a login, plan for that separately.
Frequently asked questions
- Does Google Play require R8 from February 2027?
- No. Google strongly recommends R8 but says other optimization tools can be used. What it requires is at least 25% optimization, obfuscation and shrinking for apps with more than 10 MB of DEX code.
- Do small apps have to meet the code optimization requirement?
- Google says the requirement is only enforced where DEX size is non-negligible: more than 10 MB for apps and more than 50 MB for games. The new memory thresholds are a separate rule.
- Where do I find my app's DEX size?
- Play Console's app bundle explorer shows the DEX size and optimization percentages for each app bundle you upload. A developer can also run android analyze on the AAB file before uploading.
- Can I fix a low optimization score by changing my website?
- No. The scores describe the compiled code inside the Android app. The person or tool that builds the app has to change the build settings and produce a new version.
- Will my app be removed if it misses the requirement?
- Google's page says not meeting a requirement can affect an app's visibility and publishing capabilities on Google Play. It does not describe a single automatic outcome, so do not wait to find out.