找不到 support-fragment.jar (com.android.support:support-fragment:27.0.2) [英] Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2)

查看:40
本文介绍了找不到 support-fragment.jar (com.android.support:support-fragment:27.0.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我克隆了我的项目并使用 Android Studio 打开,但构建失败并出现以下错误并且相同的项目对其他人运行良好.

解决方案

我自己刚刚遇到了这个问题,并通过删除 Gradle 的缓存来修复它.在 Linux 上,您可以在此处找到缓存:

~/.gradle/caches

之后做一个完整的构建,它应该可以工作了.

I cloned my project and opened with Android studio, but the build fails with the below error and same project is working fine for others.

解决方案

Just had the issue myself and fixed it by deleting Gradle's cache. On Linux you would find the cache here:

~/.gradle/caches

Afterwards do a full build and it should be working.

这篇关于找不到 support-fragment.jar (com.android.support:support-fragment:27.0.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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