升级到Android Studio 3.2.1 版本,遇到的问题

版权声明:本文为博主原创文章,不得随意转载,转载请注明出处!!! https://blog.csdn.net/YuDBL/article/details/85059092

最近收到3.2.1版本的推送就果断更新了,更新以后,打开自己最近的项目,报如下错误:

No route to host (connect failed)

Caused by: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring root project 'mjptouchProject’.

Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar

Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar'

解决方式:

添加如下语句

 mavenCentral()
 jcenter{url "http://jcenter.bintray.com/"}

  

猜你喜欢

转载自blog.csdn.net/YuDBL/article/details/85059092