Downloading the Support LibrariesStart the android SDK Manager. In the SDK Manager window, scroll to the end of the Packages list, find the Extras folder. Select the Android Support Library item. Click the Install packages button.
Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.
Under Tools, select Android SDK Tools and Android SDK Platform-tools and update.
Once updated, restart your SDK Manager. Android Support Repository will now be available under Extras.
As of today, the android support libraries are now available through Google's Maven repository. reference: https://developer.android.com/topic/libraries/support-library/setup.html
by adding maven section in repositories tag in build.gradle of project.
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
kehers answer worked before but now that library has been renamed to:
Local Maven repository for Support Libraries and its also under Extras.
I also faced the same problem. You should update your Android SDK Tools and Android SDK Platform-tools. That will bring the option of Support Repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With