Long build times or cache failures in Cloud Build

更新时间:
复制 MD 格式

Problem description

Builds in Cloud Build experience long completion times or cache loading fails.

Cause

The cache is too large.

Solutions

  1. Select Install Cache and enable Exact Match
  2. Update the build.gradle file. For example, add a comment to the file.
  3. Trigger the build again. This build does not use the cache. After the build is complete, a new, streamlined cache is created. Subsequent builds then use this new cache.

Applies to

  • Cloud Build