构建失败在4s运行分级任务‘组装释放’.运行分级任务“组装释放”..。完成5.3s级任务assembleRelease退出代码1失败
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.sununigeriaflutter"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}}
颤振{源‘./.’}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'}
发布于 2020-02-27 10:41:58
你的错误本身给了你解决方案。您需要在这一行中升级kotlin jdk7 7依赖项版本。
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"查找定义$kotlin_version的位置。将其更改为官方Kotlin发布页面上定义的最新版本
https://stackoverflow.com/questions/60430311
复制相似问题