I'm trying to declare my own custom libraries as dependencies in Gradle. I need to declare that 'Project A' is dependent and must compile 'Project B'.
The 'settings.gradle' file for Project A (which includes Project B: mylibrary) would look like this:
include ':app', ':mylibrary'
project(':mylibrary').projectDir = new File(settingsDir, '../mylibrary/lib')
And I'd make sure that 'build.gradle' had:
compile project(':mylibrary')
Previously, I had ALL my Android Studio Projects in '~/AndroidStudioProjects' (I develop on a Mac). However, I have done some "organising" of my file structure. 'Project A', which uses and relies on classes/methods from 'Project B' (i.e. 'mylibrary'), are no longer in the same, base, root directory (previously ~/AndroidStudioProjects; my projects now reside in different directories).
How do I declare a project location in Gradle that is an outside project?