flutter / flutter/flutter

Android application size is big when building on Windows host

Open
#142,401 15 comments 0 reactions 0 assignees View on GitHub
a: size found in release: 3.16 found in release: 3.20 has reproducible steps P3 perf: app size platform-android platform-windows team-android triaged-android
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Create a simple flutter application.
run the application using the command flutter run

### Actual results

-The size of the Flutter runner (debug app) is exceptionally high (480Mb) for a very simple application that just displays text on the screen. This substantial runner size significantly impacts my build time, especially during the "installing / sync files to device" phase, which takes 3-4 minutes. (wich i think is normal due to the app size)
-i'm using flutter run to run the app in debug mode
-Additionally, the project size is abnormally high at 1.2GB.

### Logs

Logs

```console

```

### Flutter Doctor output

[√] Flutter (Channel stable, 3.16.8, on Microsoft Windows [Version 10.0.22000.1936], locale fr-FR)
• Flutter version 3.16.8 on channel stable at C:\Users\Administrator\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision https://github.com/flutter/flutter/commit/67457e669f79e9f8d13d7a68fe09775fefbb79f4 (10 days ago), 2024-01-16 16:22:29 -0800
• Engine revision 6e2ea58a5c
• Dart version 3.2.5
• DevTools version 2.28.5

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
• Platform android-34, build-tools 33.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2023.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.73.1)
• VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.60.0

[√] Connected device (4 available)
• BE2013 (mobile) • 192.168.1.2:5555 • android-arm64 • Android 11 (API 30)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.1936]
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.225
• Edge (web) • edge • web-javascript • Microsoft Edge 118.0.2088.46

[√] Network resources
• All expected network resources are available.

! Doctor found issues in 1 category.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.