昨晚将 Fabrics crashlytics 升级到 Firebase。
当我尝试重新构建应用程序时,它遇到了很多问题,我一一修复了这些问题,但最后一个问题被卡住了:
无法为抽象类“GoogleServicesTask”创建代理类
应用程序/构建
buildscript {
ext.kotlin_version = '1.3.41'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
Run Code Online (Sandbox Code Playgroud)
在我的应用程序/gradle 文件中,我有
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.xxx.xxxx"
minSdkVersion 19
targetSdkVersion 29
versionCode 23
versionName "1.1.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" …Run Code Online (Sandbox Code Playgroud)