[英]crashlytics custom crash reporting not showing on Firebase Console
[英]Firebase Crashlytics Console not showing crashes on neither new or old builds anymore
我遇到了 firebase Crashlytics 的问题,其中没有出现崩溃,但无崩溃率百分比是。
有一天,在看似随机的一天,Firebase Crashlytics 控制台上停止显示所有 Crashlytic 日志。 然而,无碰撞率百分比确实出现在那里。 我假设他们确实得到了一些数据,因为为了计算这个无崩溃百分比,他们需要崩溃日志数据(也许不是,idk)。
要添加到这一点,旧的构建,其中用于崩溃待观察,也停止显示在火力地堡Crashlytics控制台的崩溃日志。 在这一点上,我确信这可能不是我们这边的配置问题,如果它是旧版本不应该受到影响。
也没有错误日志,告诉我们出现了问题。
- Kotlin version: 1.4.10
- Gradle plugin version: 4.0.2
- firebase-crashlytics-gradle version: 2.3.0
- Firebase Crashlytics version: 17.2.2
项目级 build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath "com.apollographql.apollo:apollo-gradle-plugin:1.2.0"
classpath group: 'commons-io', name: 'commons-io', version: '2.5'
classpath 'com.google.gms:google-services:4.3.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10"
classpath 'com.google.firebase:perf-plugin:1.3.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
应用级 build.gradle
import groovy.json.JsonOutput
import org.apache.commons.io.IOUtils
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-perf'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
if (project.hasProperty("enableJacoco")) {
apply from: '../jacoco.gradle'
}
repositories {
maven { url 'https://www.jitpack.io' }
flatDir {
dirs 'libs'
}
}
androidExtensions {
experimental = true
}
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.my-app"
minSdkVersion 21
targetSdkVersion 29
testInstrumentationRunner "com.my-app.TestAppJUnitRunner"
vectorDrawables.useSupportLibrary = true
// for auto factory
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
debuggable false
testCoverageEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
FirebasePerformance {
instrumentationEnabled false
}
debuggable true
testCoverageEnabled project.hasProperty("enableJacoco")
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
}
useLibrary 'android.test.runner'
useLibrary 'android.test.base'
useLibrary 'android.test.mock'
}
dependencies {
// Firebase
implementation "com.google.firebase:firebase-messaging:20.1.0"
implementation "com.google.firebase:firebase-core:17.2.0"
implementation "com.google.firebase:firebase-perf:19.0.0"
implementation "com.google.firebase:firebase-auth:19.2.0"
implementation "com.google.firebase:firebase-analytics:17.6.0"
implementation "com.google.firebase:firebase-crashlytics:17.2.2"
}
apply plugin: 'com.google.gms.google-services'
(清理后仅显示与 firebase 相关的)
注意:我们将 google-services.json 放在我们项目中的正确位置,就像往常一样。
希望其他人能够提供帮助。 提前致谢!
在新版 Firebase crashlytics(从结构迁移后)中,控制台中看不到受 Google 制裁的国家/地区的 IP 报告。 这可能是某人的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.