手动安装android support library 23.0.1

转自http://www.cnblogs.com/zhiyingzhou/p/7168452.html

在搭建React-Native开发环境的时候,使用Android Sdk Manager无法找到Android Support Library这一项。

所以google了一下,找到了解决办法。

访问Android Official page可以查看到所有版本Android Support Library压缩包,只需要选择需要的Android Support Library版本就可以了。

然后使用google仓库链接下载就行了:

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

比如:

下载Android Support Library revision 19:

https://dl-ssl.google.com/android/repository/support_r19.zip

下载Android Support Library revision 19.0.1 :

https://dl-ssl.google.com/android/repository/support_r19.0.1.zip

下载 Android Support Library revision 19.1.0 :

https://dl-ssl.google.com/android/repository/support_r19.1.zip

我需要23.0.1,就直接访问以下链接就行了:

https://dl-ssl.google.com/android/repository/support_r23.0.1.zip

然后将下载的文件解压,会得到名字为support的目录,如图:

手动安装android support library 23.0.1

 

将此目录拷贝到android sdk目录下的extras/android文件夹下,如图:

手动安装android support library 23.0.1

打开android sdk manager,将会看到已经手动安装好的android support libraray:

手动安装android support library 23.0.1

 

原文地址:https://*.com/a/31788765

使用方法为:

Eclipse

  1. Go to your project in the navigator, right click on properties.

  2. Go to the Java Build Path tab on the left.

  3. Go to the libraries tab on top.

  4. Click add external jars.

  5. Go to your ADT Bundle folder, go to sdk/extras/android/support/v7/appcompat/libs.

  6. Select the file android-support-v7-appcompat.jar

  7. Go to order and export and check the box next to your new jar.

  8. Click ok.