有时候从GitHub上下的项目加载老半天依赖下不下来,主要报以下错误
1 | Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle. |
或者如下错误
1 | ERROR: Failed to resolve: com.google.guava:guava:27.0.0-android |
解决办法只要在项目项目build.gradle文件中添加maven { url”https://jitpack.io"}即可
1 | buildscript { |