我刚刚更新了一个具有debug
和release
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时,调试任务将可用:|
对不起这是我的错