【发布时间】:2019-08-12 03:24:40
【问题描述】:
我刚刚更新了一个项目以拥有 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'
【问题讨论】:
-
可能重复:stackoverflow.com/questions/46339588/… 如果不是,请提供您的 gradle 文件(请不要提供敏感数据)。
标签: android android-gradle-plugin crashlytics google-fabric