Android support Repository

解决问题

今天,突然之间AS报错,说’com.android.support:design:23.1.1’找不到了,这怎么可能,我一直都用着它啊,我一直在app.gradle中添加引用啊

    compile 'com.android.support:design:23.1.1'

突然就错了,我就急了,然后经过查询官网,得知support包位置是

【sdk】\extras\android\m2repository\com\android\support

我来到自己电脑的该目录下,发现果然design找不到了,我觉得这是中邪了,以前都在这个目录见过他,可是问题最终还是得解决的,我来到了官网,找到了安装support教程

根据教程,得出步骤:
1、点击android绿色小人,就是鼠标放上去,会提示这是sdk manager的那个图标
2、点击launch standalone sdk manager
3、找到最下面的Extras,再展开找到Android support Repository,勾选它
4、点击install 1 package(由于我已经安装过了,但是缺少了design部分,所以先点击delete 1 package 把Android support Repository删除掉,再重新install一遍)

Android support Library 作用

顺便提一下该库的功能,从官网copy了下来,吃瓜群众自己翻译吧,哈哈哈哈!

The Android Support Library offers a number of features      

that are not built into the framework. These libraries     

offer backward-compatible versions of new features, provide   

useful UI elements that are not included in the framework,   

and provide a range of utilities that apps can draw on

你可能感兴趣的:(Android_工具&&,小技巧)