升級到Android Studio 3.2.1 版本,遇到的問題
阿新 • • 發佈:2018-12-20
最近收到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/"}