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
For macOS:
Press command + shift + g from finder and then type
~/Library/
And press return
android/sdk/extras/android
m2repository
folder.I ran into this problem for the version of Android 2.3.1 and the android_m2repository_r47 package.
Extract the downloaded zip file.
Copy the folder named m2repository
from the extracted folder.
Navigate to extras/android
directory in your SDK installation directory. For me it's:
C:\Users\$usrname$\AppData\Local\Android\sdk\extras\android\
Replace the existing m2repository
folder with the one from the ZIP.
(I suggest creating a backup first)
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 <url>
tag.
It should look like this:
<complete>
<size>355529608</size>
<checksum>a0d22beacc106a6977321f2b07d692ce4979e96a</checksum>
<url>android_m2repository_rXX.zip</url>
</complete>
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
You can put the downloaded zipped file in the Temp folder under the Android SDK (C:\Users\$usrname$\AppData\Local\Android\sdk\temp
). Then restart the SDK manager and install it.
just copy the sdk folder
and I found another solution here
After 5?minutes the install seemed to go through (not sure though if it just timed out... but at least starting downloading rest of files) ... now stuck on sdk-tools-darwin-###.zip and went through after few minutes... now stuck again at emulator-darwin-4266726.zip, then build_tools_r27-macosx.zip. then on google_m2repository_gms_v11_3_rc05_wear_2_0_5.zip.... and then platform-27-r01.zip and so on... Will report back if it actually still installed everything and works. – armyofda12mnkeys Nov 3 '17 at 18:11
and I'm happy now
Try to paste the content of the folder in: Program Files\android\android studio\gradle\m2repository
I've tried and it worked well:)