android - how do you clone a project from github into the same project -
in android studio how git clone project github same project?
if got question correctly, want check out library , add dependency (gradle based?) project. prefered way checkout separately , built library project. , if have maven can install local repository.
the other way (and trying achieve) add submodule of local repository.
git submodule add git://repourl.git yoursubmodulefolder
then can add library module dependency application module. (you don't have use git submodules, can repo zip , extract project)
if put library under libraries folder in project can this.
add settings.gradle
include ':libraries:yourlibrarymodulename'
add build.gradle
dependencies { compile project(':libraries:yourlibrarymodulename') }
you should able build application submodule
please note quick answer, can find more info on both gradle submodules , gradle module dependencies here on stackoverflow. guess should enough point in right direction.
Comments
Post a Comment