简体   繁体   English

无法解析 org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.5.1

[英]Could not resolve org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.5.1

I have some problems with the android project, when I try to sync project with Gradle files, the console log, display this error我的 android 项目有一些问题,当我尝试将项目与 Gradle 文件同步时,控制台日志显示此错误


* What went wrong:
A problem occurred configuring root project 'GlobalApp'.
> Could not resolve all artifacts for configuration ':classpath.
   > Could not resolve org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.5.1.
     Required by:
         project :
      > Could not resolve org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.5.1.
         > Could not get resource 'https://kotlin.bintray.com/kotlinx/org/jetbrains/kotlinx/kotlinx-gradle-serialization-plugin/0.5.1/kotlinx-gradle-serialization-plugin-0.5.1.pom'.
            > Could not GET 'https://kotlin.bintray.com/kotlinx/org/jetbrains/kotlinx/kotlinx-gradle-serialization-plugin/0.5.1/kotlinx-gradle-serialization-plugin-0.5.1.pom'. Received status code 403 from server: Forbidden

And actually when I try to load de URL , https://kotlin.bintray.com/kotlinx/org/jetbrains/kotlinx/kotlinx-gradle-serialization-plugin/0.5.1/kotlinx-gradle-serialization-plugin-0.5.1.pom the response is a 403实际上,当我尝试加载 de URL 时, https://kotlin.bintray.com/kotlinx/org/jetbrains/kotlinx/kotlinx-gradle-serialization-plugin/0.5.1/kotlinx-gradle-serialization-plugin-0.5。 1.pom响应是 403

I don't know if exist another repository or how to fix this?我不知道是否存在另一个存储库或如何解决这个问题?

They are my build.gradle files它们是我的 build.gradle 文件


buildscript {
    ext.kotlin_version = '1.2.51'
    ext.serialization_version = '0.5.1'
    repositories {
        google()
        mavenCentral()
        maven { url "https://kotlin.bintray.com/kotlinx" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:$serialization_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlinx-serialization'

android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "com.sisvol.app.globalappkcr"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName '2.39.0'
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        setProperty("archivesBaseName", "GlobalApp-JSM-ST8050B-$versionName")
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}

compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
    //implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:exifinterface:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation files('libs/core-3.2.1.jar')
    implementation files('libs/top-usdk-service-1.0.2.jar')
}
 ``


buildscript {
ext.kotlin_version = '1.2.51'
ext.serialization_version = '0.5.1'
repositories {
    google()
    mavenCentral()
    maven { url "https://dl.bintray.com/kotlin/kotlinx/" }
}

Change the url of maven by: https://dl.bintray.com/kotlin/kotlinx/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法在 Kotlinx-Serialization 中序列化地图 - Is there a way to serialize a map in Kotlinx-Serialization Kotlin:ObjectBox和kotlinx.Serialization的组合实体类有冲突吗? - Kotlin: combined Entity class of ObjectBox and kotlinx.Serialization in conflict? 错误:无法下载 kotlin-gradle-plugin.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50):没有可离线使用的缓存版本 - Error: Could not download kotlin-gradle-plugin.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50): No cached version available for offline Gradle sync失败:无法加载类'org.jetbrains.kotlin.gradle.KotlinGradleModelImpl' - Gradle sync failed: Could not load class 'org.jetbrains.kotlin.gradle.KotlinGradleModelImpl' kotlinx.serialization.json.internal.JsonDecodingException:找不到多态序列化程序,因为在 Z0ECD11C1D7A287401D148A23BBD7A2 上缺少 class 鉴别器('null') - kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null') on JSON Gradle 无法解析 org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto) - Gradle Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto) Gradle Syn 失败:找不到 org.jetbrains.trove4j:trove4j:20160824 - Gradle syn fail: Could not find org.jetbrains.trove4j:trove4j:20160824 Gradle 构建失败:找不到 org.jetbrains.kotlin 即使我没有使用 Kotlin - Gradle build failed : could not find org.jetbrains.kotlin even if I haven't used Kotlin 没有 org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21 的缓存版本可用于离线模式错误 - No cached version of org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21 available for offline mode Error Kotlin 项目中未解决的参考 kotlinx - Unresolved reference kotlinx in Kotlin project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM