How to manually download and add v7-appcompat library without SDK Manager

I checked this link:

https://developer.android.com/tools/support-library/setup.html

It says that I have to use the SDK manager to download and add v7-appcompat, however I need to connect to the Internet through a proxy, and when I use the SDK manager, it cannot load anything.

So how can I download and add v7-appcompat?

I KNOW HOW TO USE PROXY, BUT PROXY HAS MADE MY INTERNET SPEED, SAY THE MESSAGE.

(I want to use material design, but when I use this theme: Theme.AppCompat.Light.DarkActionBar, it is to connect it, I checked it over the Internet and I find out that I need to add v7-appcompat and there is no folder, for example, extras \ android \ support)

+4
source share
1 answer

Manual upload steps:

  • Run the SDK manager at least once after installation, so it will create its own configuration folder.
  • Locate the .android folder in your home folder ( ~ on * nix, C:\Users\<username> on Windows)
  • Open sites-settings.cfg
  • Select the repository line that is likely to contain your package (repo names after the = sign can give you the key). In your case, it will be:

     @ name@https \://dl.google.com/android/repository/addon-6.xml=Google Inc. 
  • Paste the selected URL into the address bar of the browser:

     https://dl.google.com/android/repository/addon-6.xml 
  • You will see an XML file describing the downloads available in the repository. We are interested in:

     <sdk:name-display>Android Support Library</sdk:name-display> 
  • Below you can find the direct download URL.

     <sdk:url>support_r19.1.zip</sdk:url> 
  • Now it can be an absolute path or a relative path. In our case, this is a relative path. Just add the absolute current path to it. Now we:

     https://dl.google.com/android/repository/ 

    so the link will be

     https://dl.google.com/android/repository/support_r19.1.zip 
  • If you don’t find the files you need, just try another repository.

Please be aware that https://dl.google.com may be blocked in China. You yourself will find a solution to this problem;)

+6
source

All Articles