上传开源库到Jitpack时一直红标,报错为:
Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in project ':app'.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseKotlin'.
> Could not resolve all files for configuration ':app:kotlinCompilerClasspath'.
> Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.10 because no repositories are defined.
Required by:
project :app
完整日志在这里
其中奇怪的是,上面写到的kotlin版本是Kotlin: 1.4.31
,事实上我的build.gradle指定的版本是:
ext {
compose_version = '1.0.0-beta09'
kotlin_version = '1.5.10'
}
repositories {
//...
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0-beta05'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
请问这是为啥呢?
thanks!