I am importing a library module named \"wear\" in my project and while building, I am getting this:
Error : A problem occurred configuring project \':app\'.
C
Actually the project itself lays inside the target project root folder:
...
|-wear
|-app
So in order to include it properly you have to define path that points to that inner folder:
'setting.gradle':
include ':app', 'MyLibraryProject'
project(':MyLibraryProject').projectDir = new File("X:\\SOME_PATH\\wear\\app")
'app\build.gradle' (Main project)
dependencies {
...
compile project(':MyLibraryProject')
...
}