Installing Android Support Repository offline

前端 未结 6 999
星月不相逢
星月不相逢 2021-01-30 17:18

I am trying to setup Android Studio + Android SDK on Linux. I was able to setup Android Studio and SDK Tools and other components except \"Android Support Repository\" (The down

6条回答
  •  感情败类
    2021-01-30 17:59

    1. Download the latest support repository.
      Here is the link for version v47
      To get the most recent version check out the update below
    2. Extract the downloaded zip file.

    3. Copy the folder named m2repository from the extracted folder.

    4. Navigate to extras/android directory in your SDK installation directory. For me it's:
      C:\Users\$usrname$\AppData\Local\Android\sdk\extras\android\

    5. Replace the existing m2repository folder with the one from the ZIP.
      (I suggest creating a backup first)

    6. Restart Android studio.

    Hopefully you will have the newer Android support repository.

    Update

    To get the latest version of support repository:

    a. Go to this link

    b. Search for the keyword m2repository_r

    c. Copy the value in tag.
    It should look like this:

     
        355529608
        a0d22beacc106a6977321f2b07d692ce4979e96a
        android_m2repository_rXX.zip
     
    

    d. Paste it to the end of this URL: https://dl.google.com/android/repository/
    Your new URL should look like this:
    https://dl.google.com/android/repository/android_m2repository_rXX.zip
    where XX is the version number

    e. Download and continue from step 2

提交回复
热议问题