面料 "crashlyticsUploadDistributionDebug" 不存在

Fabric "crashlyticsUploadDistributionDebug" is not there

我刚刚更新了一个项目,使其具有 debugrelease buildTypes,到目前为止一切正常,预计 crashlyticsUploadDistributionDebug 任务不在项目中,所有其他 crashlytics 任务都在那里

使用fabricPlugin : '1.28.1'

Task 'crashlyticsUploadDistributionDebug' not found in root project

crashlyticsStoreDeobsDebug
crashlyticsStoreDeobsRelease
crashlyticsUploadDeobsDebug
crashlyticsUploadDeobsRelease
crashlyticsUploadDistributionRelease

android 项目 build.gradle 文件

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.ben-manes.versions'

apply from: '../coverage.gradle'

android {
    compileSdkVersion versions.compileSdk
    buildToolsVersion versions.buildTools

    defaultConfig {
        applicationId 'xxxxxxxxxxxxxx'

        versionCode buildInfo.number
        versionName buildInfo.name

        minSdkVersion versions.minSdk
        targetSdkVersion versions.targetSdk

        //Fabric
        ext.betaDistributionReleaseNotes = buildInfo.releaseNotes
        ext.betaDistributionGroupAliases = "xxxxxxxxxxxxxx"
    }

    buildTypes {
        debug {
            ext.enableCrashlytics = false
            signingConfig signingConfigs.debug
            applicationIdSuffix '.debug'
            versionNameSuffix '-debug'
        }
        release {
            signingConfig signingConfigs.release
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    xxxxxx
    implementation(libraries.crashlytics) {
        transitive true
    }
    xxxxx
}

apply plugin: 'com.google.gms.google-services'

我发现调试构建类型中有 属性 设置为 false

        debug {
            ...
            ext.enableCrashlytics = false
            ...
        }

当删除或切换为 true 时,调试任务将可用 :| 对不起我的错