前言:
导入Google中的解析json库gson报错找不到的情况,解决方案
Unable to resolve dependency for ':app@debug/compileClasspath': Could not download gson.jar (com.google.code.gson:gson:2.8.2)
在gradle.properties中加入:
-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080
or
systemProp.socks.proxyHost= #your host
systemProp.socks.proxyPort= #your port
或许可以在project
下的gradle.build
加上jcenter()
等
这篇文章可以试试
网友评论