找不到 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)
问题描述
我克隆了我的项目并使用 Android Studio 打开,但构建失败并出现以下错误并且相同的项目对其他人运行良好.
- 出了什么问题:无法解析配置:app:flavorUnsignedReleaseCompileClasspath"的所有文件.<块引用>
找不到 support-fragment.jar (com.android.support:support-fragment:27.0.2).在以下位置搜索:https://jcenter.bintray.com/com/android/support/support-fragment/27.0.2/support-fragment-27.0.2.jar
我自己刚刚遇到了这个问题,并通过删除 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.
- What went wrong:
Could not resolve all files for configuration ':app:flavorUnsignedReleaseCompileClasspath'.
Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-fragment/27.0.2/support-fragment-27.0.2.jar
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屋!