升级到Android Studio 3.2.1 ,报 org.gradle.internal.exceptions.LocationAwareException

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

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/"}

  升级到Android Studio 3.2.1 ,报 org.gradle.internal.exceptions.LocationAwareException_第1张图片

 

你可能感兴趣的:(错误累积(错题本))