导入新的Android Design支持库 [英] Import new Android Design Support library

本文介绍了导入新的Android Design支持库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导入新的Android支持库,例如 com.android.support:support-design:22.0.0 ,但同步后出现此错误gradle:找不到

Hi i'am trying to import the new android support library like this com.android.support:support-design:22.0.0 but i got this error after sync the gradle : failed to find

推荐答案

您必须更新您的Android在SDK Manager中支持存储库,然后只需将此依赖项添加到您的 build.gradle

You have to update your Android Support Repository in SDK Manager, then just add this dependency to your build.gradle:

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

com.android.support:support-design:22.0.0 是错误的。

这篇关于导入新的Android Design支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆