问题
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