问题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 类型问题》*
原文地址:https://www.cnblogs.com/Owen-ET/p/10434627.html
时间: 2024-11-05 19:25:35