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.

  1. add settings.gradle

    include ':libraries:yourlibrarymodulename'

  2. add build.gradle

    dependencies {      compile project(':libraries:yourlibrarymodulename') } 
  3. 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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -