无法确定“9.0.1”中的 Java 版本
尝试将项目上传到,只是得到错误:bintray
Could not determine java version from '9.0.1'.
我读到它是等级错误,并在较高版本中修复,我尝试将版本更改为,但得到另一个错误:gradle
4.2.1
Gradle 同步失败:无此类属性:FOR_RUNTIME类:org.gradle.api.attributes.用法 有关更多详细信息,请查阅 IDE 日志(帮助|显示日志) (571ms)
格拉德尔属性:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip
构建渐变项目
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta7'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}