完成设置 Firebase 后,我尝试设置 Firebase Crashlytics。
崩溃已成功发送。
我可以在 firebase 仪表板中看到它们。
但是当我输入 crashlytics 查看崩溃细节时。
我被困在第 3 步(构建并运行您的应用程序,我们将监听您的应用程序与我们的服务器进行通信。)。
我已经尝试卸载重新安装,删除结构或火力崩溃报告部分,但根本不起作用。
这是我使用的 firebase、fabric、crashlytics 版本。
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.0.2'
classpath 'io.fabric.tools:gradle:1.26.1'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar')
{
transitive = true;
}
Run Code Online (Sandbox Code Playgroud)
有什么解决办法吗?
每个人都在建议答案之前阅读并更新自己(不要给 Fabric 建议):https : //firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android
我的应用程序已经在 firebase 注册。
我设置了所有内容,但没有更改清单和应用程序类中的任何内容。
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
android {
/* compileSdkVersion 'android-R'*/
compileSdkVersion 29
defaultConfig {
applicationId "com.xxxxxxxxxxxx"
minSdkVersion 21
/* targetSdkVersion 'R'*/
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds true
abortOnError false
}
buildTypes {
release {
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
customDebugType {
debuggable true
}
}
dataBinding {
enabled = …Run Code Online (Sandbox Code Playgroud)