Dependency file is too big caused build too slow

Hi All Expert,

In our project we have one dependency which is a over 2GB file.During build it need load it, and this caused the build duration quite long.

What would be the best practice when dependency file is quite big? any suggestions?

Hi Jason,

how do you load the dependency? If you use Gradle’s built-in dependency management, then it should be downloaded exactly once and only when it is required. Is it downloaded for you on every build invocation?

Cheers,
Stefan

Hi Stefan,

I am using dependencies { “requiredName@zip”} to load it. It only load once but it take 2 hours to load it.Even some times when colleague from different region, the load missed part. Seems network caused the missing.