app:uploadCrashlyticsMappingFileRelease'。主机名不能为空。
我已启用混淆。
buildTypes {
release {
minifyEnabled true // Enables code shrinking, obfuscation, and optimization
shrinkResources true // Enables resource shrinking, which is performed by the Android Gradle plugin
firebaseCrashlytics {
mappingFileUploadEnabled true
}
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
另外,使用
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
implementation 'com.google.firebase:firebase-auth:20.0.1'
implementation 'com.google.firebase:firebase-firestore:22.0.1'
implementation 'com.google.firebase:firebase-core:18.0.0'
//the Firebase SDK for Google Analytics.
implementation 'com.google.firebase:firebase-analytics:18.0.0'
//the Firebase Crashlytics SDK.
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
并且,
classpath 'com.google.gms:google-services:4.3.4' // Google Services plugin
// Add the Crashlytics Gradle plugin.
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
有人遇到相同的问题吗? 我尝试清除gradle缓存并删除crashlytics依赖项,因为我读到Android Studio会自动处理,但崩溃仍未记录。
我正在使用Android Studio 4.1.1(从先前版本升级)
构建#AI-201.8743.12.41.6953283,在2020年11月5日构建 运行时版本:1.8.0_242-release-1644-b3-6222593 amd64 VM:由JetBrains s.r.o提供的OpenJDK 64位 Server VM Linux 5.4.0-58-generic GC:ParNew,ConcurrentMarkSweep Memory:1246M Cores:4 Registry: ide.new.welcome.screen.force=true,external.system.auto.import.disabled=true 非捆绑插件: com.android.tool.sizereduction.plugin 当前桌面:ubuntu:GNOME。


