从 Fabric 迁移后未记录 Firebase Crashlytics - Android Native

问题描述

我有一个使用 Fabric crashlytics 的原生 Android 应用 (Java),并且运行良好。

我已按照以下说明从 Fabrics 迁移到 Crashlytics:https://firebase.google.com/docs/crashlytics/get-started?platform=android

由于 Fabrics 已弃用,我无法再登录 Fabric 仪表板,现在,Firebase 控制台中也未显示崩溃。

这是我在 Gradle 中的依赖项列表:

项目级别:

    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.1'
        classpath 'com.google.gms:google-services:4.3.4'
        // Add the dependency for the Performance Monitoring plugin
        classpath 'com.google.firebase:perf-plugin:1.3.1'  // Performance Monitoring plugin
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
    }

App Level:

   dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
    /*implementation fileTree(include: ['*.jar'],dir: 'libs')*/
    /*implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
        transitive = true;
    }*/

    // debugImplementation because LeakCanary should only run in debug builds.
    //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-alpha-3'

    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.legacy:legacy-support-v13:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    /*implementation "com.google.firebase:firebase-core:$firebase_core"*/
    implementation "com.google.firebase:firebase-storage:$firebase_storage"
    implementation "com.google.firebase:firebase-database:$firebase_database"
    implementation "com.google.firebase:firebase-auth:$firebase_auth"


    implementation "com.google.firebase:firebase-analytics:$firebase_analytics"
    implementation "com.google.firebase:firebase-crashlytics:$firebase_crashlytics"

    // Add the In-App Messaging and Analytics dependencies:
    implementation "com.google.firebase:firebase-inappmessaging-display:$firebase_inappmessaging"

    //remote config
    implementation 'com.google.firebase:firebase-config:19.2.0'

    // Add the dependency for the Performance Monitoring library
    implementation 'com.google.firebase:firebase-perf:19.0.9'

    implementation 'com.firebaseui:firebase-ui-storage:4.3.2'
    implementation 'com.google.firebase:firebase-messaging:20.3.0'
    implementation 'com.google.android.gms:play-services-analytics:17.0.0'
    implementation "com.google.android.gms:play-services-location:$playServices"
    implementation 'androidx.multidex:multidex:2.0.1'
    //implementation 'org.greenrobot:eventbus:3.1.1'
    implementation 'com.squareup.okhttp3:okhttp:4.0.1'
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    implementation "com.github.bumptech.glide:glide:$glide"
    implementation 'androidx.navigation:navigation-fragment:2.1.0'
    implementation 'androidx.navigation:navigation-ui:2.1.0'

    annotationProcessor "com.github.bumptech.glide:compiler:$glide"
    annotationProcessor 'androidx.annotation:annotation:1.1.0'
    implementation 'com.airbnb.android:lottie:3.4.1'

    //razor pay
    implementation 'com.razorpay:checkout:1.5.16'

    //status progress bar refer DocumentationActivity
    implementation 'com.kofigyan.stateprogressbar:stateprogressbar:1.0.0'
    implementation 'de.hdodenhof:circleimageview:3.1.0'


    //paytm
    /*implementation('com.paytm:pgplussdk:1.4.4') {
        transitive = true;
    }*/
    implementation 'com.paytm.appinvokesdk:appinvokesdk:0.6'
    //implementation 'com.paytm.easypay:easypay:8.5.0-RC-2'

    //truecaller sdk
    implementation "com.truecaller.android.sdk:truecaller-sdk:1.0.0"

    //sms retervier api,truecaller throwing crash if we don't use this api
    implementation "com.google.android.gms:play-services-auth-api-phone:17.4.0"

    //flex
    implementation 'com.google.android:flexbox:2.0.1'

    implementation 'com.appyvet:materialrangebar:1.4.7'

    //Shimmer Effect
    implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'

    testImplementation 'junit:junit:4.13'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
    implementation 'androidx.lifecycle:lifecycle-process:2.2.0'
    implementation 'androidx.lifecycle:lifecycle-service:2.2.0'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0'
    //noinspection LifecycleAnnotationProcessorWithJava8
    annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.2.0' }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...