https://dl.bintray.com/kotlin/kotlin-eap 502 坏网关

7 人关注

我的apk编译失败了,说它无法获得

Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.4.21'] was not found in any of the following sources:

When I try to visit: https://dl.bintray.com/kotlin/kotlin-eap 我得到一个502的坏网关

这就是为什么它不能建立的原因吗?

我的gradle。

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        jcenter()
        google()
        gradlePluginPortal()
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        classpath 'com.google.gms:google-services:4.3.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        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()
repositories {
    maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    mavenCentral()
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
compileTestKotlin {
    kotlinOptions {
        jvmTarget = "1.8"

我找不到我的apk突然停止构建的原因,它上个月还在工作,我需要在明天之前找到解决方案,请有人帮助我。

full error code

Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.4.21'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:1.4.21')
  Searched in the following repositories:
    maven(https://dl.bintray.com/kotlin/kotlin-eap)
    MavenRepo
    maven2(https://plugins.gradle.org/m2/)
    
1 个评论
正如@JunYao提到的,JCenter似乎已经失效了,AndroidStudio告诉我。"JCenter Maven仓库不再接收更新:其他地方可能有更新的库版本"
android
kotlin
bintray
DB_cont
DB_cont
发布于 2021-12-14
2 个回答
JunYao Yuan
JunYao Yuan
发布于 2022-02-26
已采纳
0 人赞同

暂时不支持 Bintray JCenter

在你的 gradle 文件中删除所有 Bintray JCenter 存储库的配置。并使用 mavenCentral() 代替。

Here is the solution:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        // jcenter()
        mavenCentral() // use this instead
        google()
        gradlePluginPortal()
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        classpath 'com.google.gms:google-services:4.3.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        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()
repositories {
    maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    mavenCentral()
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
compileTestKotlin {
    kotlinOptions {
        jvmTarget = "1.8"