Android APK is very large

78 views
Skip to first unread message

Dean Wedel

unread,
Jul 22, 2024, 2:40:09 PM (5 days ago) Jul 22
to Chromium-dev
I can successfully create an APK. However it winds up being really large which the Play-Store complains about when submitted. I get this size of output:
> 258941669 Jul 22 11:24 ChromePublic.apk

I'm using these GN settings:
target_os = "android"
target_cpu = "arm64"
is_debug=false
is_java_debug = false
symbol_level = 0
treat_warnings_as_errors = false
is_official_build=true
chrome_pgo_phase = 0


I'm building with this command:
$ autoninja -C out/Default chrome_public_apk -j 10

What can I change to end up with a smaller APK ? I think the Play-Store wants a maximum of 100MB. . .

Andrew Grieve

unread,
Jul 22, 2024, 3:18:57 PM (5 days ago) Jul 22
to dean....@gmail.com, Chromium-dev
Those args look correct to me. I think the play store limit is higher for .aab files.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e7731f2e-ba2a-4d25-b817-a4d90b29bd9en%40chromium.org.

Dean Wedel

unread,
Jul 22, 2024, 3:38:45 PM (5 days ago) Jul 22
to Chromium-dev, Andrew Grieve, Chromium-dev, dean....@gmail.com
Thanks for that input. I'll try build for chrome_public_bundle instead and see what happens.
Reply all
Reply to author
Forward
0 new messages