Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2)

删除回忆录丶 提交于 2021-01-28 01:48:00

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/50922529/could-not-find-support-fragment-jar-com-android-supportsupport-fragment27-0-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!