Say for example I have a folder on my machine, which is located at D:\AndroidLibraries, and a colleague has the same folder, yet in C:\Users\Jim\AndroidLibraires.
We're both working on android project A, in android studio, and we both want to use libraries (jar, and aar) from that library.
In these question we see that we can define a project dependency as a reference to its location on the hard disk (unless we understood it wrong):
Is it possible to declare git repository as dependency in android gradle?
Reuse modules in Android Studio
Now the question is, how can we abstract the file-system path, using environment variables? For example something like this:
project( ':security' ).projectDir =
new File(settingsDir, '%android_libraries_root%\security' )