How to add Git Project in android studio

I want to add the following into my android Studio project , please tell me how to do that.

https://github.com/dhis2/dhis2-android-sdk

  • How should I structure my project to share classes between an Android client application and a JSP server application?
  • Git in Android Studio disappeared?
  • repo sync fails with “error: index-pack died of signal 9”
  • No changes to commit Android studio SVN
  • Create a gradle dependency to import from git
  • How to revert project back to a previous commit in android studio
  • How can I add hooks to gitlab?
  • How to take local working directory to any git revision irrespective of its branch after remote changes?
  • Git branch another branch from current branch
  • Merge different issues on github
  • How to use git with ssh on github https repository addresses?
  • git post-receive hook that grabs commit messages and posts back to URL
  • 2 Solutions collect form web for “How to add Git Project in android studio”

    Option 1.-Clone It First With Git Clone https://github.com/dhis2/dhis2-android-sdk then Import it in Android Studio

    Option 2- Download this Repo From Here As a Zip File, Open It and Extract, Then Import in Android Studio.

    Option 3- Open Android Studio DashBoard And Click on Checkout From Version Control, And Parte your Repo Link there, It Will DOwnload And Open It ASAP.

    If you want to Use this Project as a module or library then Import It from File->New->Import Module->//…..// OR add this as your Dependencies —

    repositories {
        // ...
        maven { url "https://jitpack.io" }
    }
    
    dependencies {
            compile 'com.github.dhis2:dhis2-android-sdk:8722ca9586'
    }
    

    Cheers.

    Download the zip from github page, unzip it and then go to Android Studio > File > New -> Import Project -> Select your project and import it.

    Hope it helps.

    Git Baby is a git and github fan, let's start git clone.