updating build.gradle code example Example 1: gradle refresh dependencies ./gradlew build --refresh-dependencies Example 2: ./gradlew build $ gradle myTask