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

  • Adding plugins from specific revision Github project to the Cordova project
  • Android source branches
  • Eclipse Internal error makes it impossible to use git
  • android.git.kernel.org: Name or service not known
  • Getting android.compileSdkVersion is missing! error gradle build
  • Authorization for github.com on Android
  • GIThub and non-english windows?
  • Compared with unmodified - Disabled in VS 2015
  • Can I have a workspace that is both a git workspace and a svn workspace?
  • Git: Find duplicate blobs (files) in this tree
  • Merge two repositories (original project and changed project WITHOUT HISTORY)
  • Listing Local and Remote Git Repos using Git shell
  • 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.