【Android Studio】之构建项目报错

 

问题1:

报错:

Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0): No cached version available for offli

# 把这段代码加入 build.gradle

buildscript {
repositories {
maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/’}
google()
}
}

allprojects {
repositories {
maven{ url ‘http://maven.aliyun.com/nexus/content/groups/public/’}
google()
}
}
# 即可

参考解决:《Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0): No cached version available for offli

 

问题2:

org.gradle.internal.resolve.ModuleVersionResolveException

勾选的去掉

参考解决:

Android 尝试解决 Gradle 升级时 offline mode 类型问题*

gradle倒入项目报错,求大神指点

 

posted @ 2019-02-25 23:27  Owen_ET  阅读(2365)  评论(0编辑  收藏  举报