(Again, applies to all your sample projects)
You have all in your gradle wrapper properties
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
However, the default is bin so unless you specify the distribution type in the build.gradle, gradle will keep reverting to bin, especially when IDEA has auto-import on.
wrapper {
distributionType = Wrapper.DistributionType.ALL
}