java - 无法解决:com.android.support:cardview-v7:24.2.0
问题描述
Android项目位于以下链接
https://gitlab.com/vandy-aad-2/aad-2-assg-1/
Gradle sync is failing to give the error: Failed to resolve: com.android.support:cardview-v7:24.2.0
尝试更新 SDK 但无法正常工作。
解决方案
google()
在顶层build.gradle
文件的 repos 中添加repo:
allprojects {
repositories {
google()
jcenter()
}
}
推荐阅读
- c - Sprintf 正在连接值
- java - 在一维战舰游戏Java中实现第二艘船
- postgresql - 如何使用 Postgres 创建 trigram 或 ngram 单词
- node.js - Vercel.com 托管:开发和生产 URL
- javascript - 仅在子组件中使用道具是不好的做法吗?没有自己状态的子组件
- c - 在 C 中将 uint_8* 转换为任何类型,比如“double”或结构?
- reactjs - 如果 Apollo GraphQL 令牌无效或已过期,则 NextAuth.js 注销
- php - 正则表达式匹配特定字符串而没有其他字符串
- python - Python - 保存循环输出
- bash - bash,如何将下载的文件(使用 curl)点源到 bash