I know similar questions have been asked many times in the past, I'm working to try import a Github project to be a library Github Project for my existing project. I've reference to related stackoverflow solutions discussed here for the steps (visually or setting.gradle/build.gradle code solution) to import it but without any success in it.
Tried including include ':library:CanvasView'
into setting.gradle and
compile project(':library:CanvasView')
into build.gradle
Had error statement Error:Configuration with name 'default' not found.
Tried solutions here to solve it without any success.
But for once, I've managed to gradle compile it with this statement, compile it fileTree(dir: 'library', include: ['CanvasView'])
in build.gradle
To my dismay, I realize that I was not able to call the API of the library in my main project, because the java file of the imported library was marked with an red icon. Tried solutions here but isn't helping to call the API. Thanks for any help rendered!