Gradle not reading gradle.properties


(vijay) #1

I changed gradle-user-home by changing “Service directory path” in Android Studio. I put my gradle.properties in new gradle-user-home. After that, I tried to build my project, my gradle doesn’t seems to be reading gradle.properties from new gradle-user-home location. It is only checking the project and sub project directories.

If I don’t change “Service directory path” in Android Studio (defaulting to /Users/vijaykedia/.gradle which is $HOME/.gradle), then it works fine.

Gradle Version: 2.10
Operating System: OS X 10.11.5

Gradle output where it is printing gradle user home
05:27:25.622 [INFO] [org.gradle.BuildLogger] Starting Build 05:27:25.622 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/vijaykedia/AndroidStudioProjects/.gradle 05:27:25.622 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/vijaykedia/AndroidStudioProjects/UdacityProject2_PopularMovies

Gradle output where it is looking for gradle.properties
05:27:25.742 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /Users/vijaykedia/AndroidStudioProjects/UdacityProject2_PopularMovies/gradle.properties 05:27:25.743 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] project property file does not exists. We continue! 05:27:25.744 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] Looking for project properties from: /Users/vijaykedia/AndroidStudioProjects/UdacityProject2_PopularMovies/app/gradle.properties 05:27:25.744 [DEBUG] [org.gradle.initialization.ProjectPropertySettingBuildLoader] project property file does not exists. We continue!