gpt4 book ai didi

android - 构建错误 : Could not find any version that matches com. android.tools.build :transform-api:1. 5.+

转载 作者:行者123 更新时间:2023-11-29 23:25:12 24 4
gpt4 key购买 nike

我在 gradle 中发生了在没有任何更改的情况下构建项目时出现错误的情况。我怀疑某些代码已从 jcenter 或 maven 端删除。

有人遇到过这个问题吗?我将不胜感激任何解决方案。谢谢

构建错误:

Could not find any version that matches com.android.tools.build:transform-api:1.5.+.
Search in build.gradle files

根目录:

// 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'

最佳答案

尝试添加:

    maven{
url 'https://dl.bintray.com/android/android-tools'
}

关于android - 构建错误 : Could not find any version that matches com. android.tools.build :transform-api:1. 5.+,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53720025/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com