我在构建项目时开始出错,而我没有进行任何更改。我怀疑某些代码已从jcenter或maven端删除。
有人遇到过这个问题吗?我将不胜感激。谢谢
内置错误:
Could not find any version that matches com.android.tools.build:transform-api:1.5.+.
Search in build.gradle files
root gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath "com.newrelic.agent.android:agent-gradle-plugin:5.17.2"
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
allprojects {
repositories {
google()
maven {
url "https://dl.bintray.com/visilabs/maven/"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
jcenter()
}
}
// Load dependencies
apply from: 'dependencies.gradle'
答案 0 :(得分:1)
尝试添加:
maven{
url 'https://dl.bintray.com/android/android-tools'
}