Android Studio无法解析存储库 [英] Android Studio fails to resolve repository

查看:75
本文介绍了Android Studio无法解析存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在尝试使用设计支持库.我的Gradle文件中有:

In my project, I'm trying to use the design support library. I have in my Gradle file:

dependencies {
    ....
    compile 'com.android.support:design'
    ....
}

当我尝试构建它时,出现错误:

And when I try to build this, I get the error:

通常我只需单击 Install Repository and sync project ,但是,这似乎不再起作用.即使单击Open File也可以,但是单击此按钮绝对不会执行任何操作.

Normally I would just click Install Repository and sync project, however, this seems to not work anymore. Clicking this does absolutely nothing, even though clicking Open File works fine.

如何手动安装?

我已经安装了最新的Android支持存储库(30.0.0)和Android支持库(23.2.1).

I have the latest Android Support Repository (30.0.0), and Android Support Library (23.2.1) installed.

推荐答案

我认为这是因为您尚未指定版本.

I think it is because you've not specified the version.

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

将版本更改为已下载的版本.

change version to what you have downloaded.

这篇关于Android Studio无法解析存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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