我的项目在2天前运行得非常好,当我回到项目上时,在gradle同步发生时出现了此错误:
Could not find any matches for com.android.tools.build:gradle:1.0.+ as no versions of com.android.tools.build:gradle are available.
Searched in the following locations:
https://maven.fabric.io/public/com/android/tools/build/gradle/maven-metadata.xml
https://maven.fabric.io/public/com/android/tools/build/gradle/
https://plugins.gradle.org/m2/com/android/tools/build/gradle/maven-metadata.xml
https://plugins.gradle.org/m2/com/android/tools/build/gradle/
Required by:
project :mobile > gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.12.1
任何帮助将不胜感激。我尝试过:
您可能会对某些设置感兴趣:
buildscript {
repositories {
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}
}
答案 0 :(得分:0)
我们有一个类似的问题,并认为是由于以下原因引起的:https://issuetracker.google.com/issues/120759347#comment30