build.gradle file does not access to gradle.properties
I have an android project. I am attempting to call buildConfigField() function in build.gradle file, but the property that I have declared in gradle.properties file cannot be found.
I have used this code in gradle.properties:
ACCESS_KEY="access_key"
and this code in defaultConfig block in build.gradle file:
buildConfigField("String", "ACCESS_KEY", ACCESS_KEY)
but the last parameter is unknown! I have selected that and pressed ctrl + Q on my keyboard, the message is No documentation found.
I...