【发布时间】:2018-02-25 23:57:03
【问题描述】:
我在 firebase 上使用 Crashlytics,但出现了这个奇怪的错误
要查看此数据,请确保您的应用使用的是最新版本的 Crashlytics
尽管我使用的是
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') { transitive = true }
classpath 'io.fabric.tools:gradle:1.25.1'
这是 Crashlytics 的最新版本。
这以前可以工作,但突然停止工作,我不知道这是一个错误还是我做错了什么。
其他人也面临同样的问题吗?
相关部分 build.gradle.
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "io.mironov.smuggler"
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.firebase-perf'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation("org.jetbrains.anko:anko:$anko_version") {
exclude group: 'com.google.android', module: 'android'
}
implementation 'com.android.support:support-v4:27.0.2'
implementation "com.android.support:appcompat-v7:$support_version"
implementation "com.android.support:design:$support_version"
implementation "com.android.support:transition:$support_version"
implementation "com.android.support:customtabs:$support_version"
implementation "com.android.support:cardview-v7:$support_version"
implementation "com.android.support:preference-v7:$support_version"
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation "android.arch.persistence.room:runtime:$room_version"
kapt "android.arch.persistence.room:compiler:$room_version"
implementation "android.arch.lifecycle:runtime:1.1.0"
kapt "android.arch.lifecycle:compiler:1.1.0"
implementation "android.arch.lifecycle:extensions:1.1.0"
implementation 'com.github.humazed:RoomAsset:v1.0-beta5'
implementation 'com.github.humazed:KotlinAndroidUtils:1.2.0'
implementation 'com.github.humazed:NetworkErrorView:1.0.1'
implementation 'com.github.humazed:BaseRecyclerViewAdapterHelper:77317cf9e2'
implementation 'com.github.bumptech.glide:glide:4.5.0'
kapt 'com.github.bumptech.glide:compiler:4.5.0'
implementation('com.mikepenz:materialdrawer:6.0.6@aar') { transitive = true }
implementation 'com.mikepenz:iconics-core:3.0.3@aar'
implementation 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar'
implementation 'com.github.medyo:android-about-page:1.2.1'
implementation 'com.yotadevices.widget:rtlviewpager:1.0.4'
implementation 'com.roughike:bottom-bar:2.3.1'
implementation 'com.github.jakob-grabner:Circle-Progress-View:v1.3'
implementation 'com.github.DanielMartinus:Stepper-Touch:0.6'
implementation "com.android.support:support-dynamic-animation:$support_version"
implementation 'com.github.vipulasri:timelineview:1.0.6'
implementation 'com.ramotion.paperonboarding:paper-onboarding:1.1.1'
implementation 'com.github.ome450901:SimpleRatingBar:1.3.6'
implementation 'com.airbnb.android:lottie:2.5.0-rc1'
implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
implementation 'com.otaliastudios:nestedscrollcoordinatorlayout:1.0.1'
compile 'com.github.jkwiecien:EasyImage:2.0.4'
implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'
implementation 'com.github.kizitonwose.time:time-android:1.0.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
implementation 'com.google.code.gson:gson:2.8.2'
implementation "com.google.firebase:firebase-auth:$firebase_version"
implementation "com.google.firebase:firebase-database:$firebase_version"
implementation "com.google.firebase:firebase-messaging:$firebase_version"
implementation "com.google.firebase:firebase-storage:$firebase_version"
implementation "com.google.firebase:firebase-perf:$firebase_version"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') { transitive = true }
implementation 'com.firebaseui:firebase-ui-auth:3.1.3'
implementation "com.google.android.gms:play-services-auth:$firebase_version"
implementation "com.google.firebase:firebase-core:$firebase_version"
implementation "com.google.android.gms:play-services-places:$gms_version"
implementation "com.google.android.gms:play-services-maps:$gms_version"
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.9.1'
implementation 'com.google.api-client:google-api-client-android:1.23.0'
implementation 'com.google.http-client:google-http-client-jackson2:1.23.0'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.github.hotchemi:permissionsdispatcher:3.0.1'
kapt 'com.github.hotchemi:permissionsdispatcher-processor:3.0.1'
debugImplementation 'com.facebook.stetho:stetho:1.5.0'
debugImplementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'
}
buildscript {
ext {
kotlin_version = '1.2.21'
anko_version = '0.10.2'
room_version = '1.0.0'
support_version = '27.0.2'
firebase_version = '11.8.0'
gms_version = '11.8.0'
}
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.mironov.smuggler:smuggler-plugin:0.12.13"
classpath 'com.google.gms:google-services:3.1.1'
classpath 'io.fabric.tools:gradle:1.25.1'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
}
}
【问题讨论】:
-
你实现了firebase核心吗? (
implementation 'com.google.firebase:firebase-core:11.8.0') -
是的,当然,我仔细检查了我是否拥有所有 firebase 库的最新版本。
-
大约一周前我从
crashlytics:2.7.1升级到了2.9.0。我看到某些过滤器设置(版本和/或日期范围)的有效统计信息,但您为其他人发布的显示。我还没有看到明确的模式,但我开始怀疑这是 2.9.0 中的错误 -
@MikeBonnell:另一个观察结果:当我在 Firebase 控制台中刷新 Crashlytics 页面时,我会暂时看到看似正确的统计信息,然后才被替换为 要查看此数据,请确保您的应用正在使用最新版本的 Crashlytics
-
感谢两位,在您的帮助下,我们找到了错误并正在努力修复。应该在它上线前几天。
标签: android firebase crashlytics crashlytics-android