【问题标题】:Gradle sync BUILD SUCCESSFUL but Make project failedGradle 同步 BUILD SUCCESSFUL 但使项目失败
【发布时间】:2022-01-20 10:05:19
【问题描述】:

当我进行 Gradle 同步时,它说构建成功,但是当我尝试制作项目时它失败并给出以下错误:

Could not GET 'http://dl.bintray.com/jlmd/maven/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.4.21/kotlin-annotation-processing-gradle-1.4.21.pom'. Received status code 502 from server: Bad Gateway

我的摇篮:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.4.21'
    repositories {
        jcenter()
        google()
        jcenter()
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath 'com.google.gms:google-services:4.3.10'
//        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21"

        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
plugins {
//    id "org.jetbrains.kotlin.jvm" version '1.4.21'
}

allprojects {
    repositories {
        maven { url "https://maven.google.com" }
        maven { url "https://jitpack.io" }
        maven { url "http://dl.bintray.com/jlmd/maven" }
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots"

        }
        maven {
            url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
            credentials {
                username 'braintree_team_sdk'
                password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
            }
        }
        maven {
            url 'https://zendesk.jfrog.io/zendesk/oss-releases-local'

        }
        jcenter()
        google()

        mavenCentral()
        jcenter()
    }
}

repositories {
    maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    mavenCentral()
    maven {
        url "https://plugins.gradle.org/m2/"
    }
}

apply plugin: "org.jetbrains.kotlin.jvm"

我不是 android 开发者,我对 android 开发者知之甚少,所以请为我详细解释一下 :) 我知道一些关于 bintray 不再可用但不知道如何编辑 gradle 以删除它的信息

【问题讨论】:

    标签: android android-studio build.gradle


    【解决方案1】:

    听起来你是:

    1. 请求错误的库模块(检查您的模块 build.gradle)
    2. 您没有在顶级 build.gradle 中指定正确的存储库
    3. 你离线了。

    【讨论】:

    • 您好,感谢您的回答,但所有这些都退房了,我没有离线。
    • 我能提供更多信息来帮助您吗?
    猜你喜欢
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-03
    • 2014-04-04
    相关资源
    最近更新 更多