Long time of building Flutter apps (Android platform) #3302
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsFast building Android apps without downloading NDK and Android SDK every time Actual resultsEach build for the Android platform is accompanied by downloading the NDK and Android SDK, which in turn increases the build time significantly (up to 10 minutes). Why is this happening? What are some ways to speed up the build or disable downloading the above tools? I use the free plan and 500 minutes per month, which can run out pretty quickly with such long builds. Build id (optional)68f1060501d11cbfa2060346 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello @Roman-Dzerkal, You can use build caching to reduce the time spent re-downloading dependencies during each Android build. Here’s an example setup you can add to your
A few things to note:
This should help you save time and build minutes in future runs. |
Beta Was this translation helpful? Give feedback.
Well, that means the size is still too big, there is nothing I can do in this instance.
One thing I can suggest is to find which of the 2 can fit into our 3 GB cache allowance and cache that, but the other would still be downloaded every time.