Firebase Crashlytics 没有显示我的错误

我试图让 Crashlytics 工作,但即使我遵循了所有步骤,我似乎仍然没有在 Crashlytics 中看到任何错误。


你能看看吗?


这是我用来开始崩溃的代码:


Crashlytics.getInstance().crash(); // Force a crash

我的应用程序摇篮:


apply plugin: 'com.android.application'


    buildTypes {

        release {

            minifyEnabled false

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            lintOptions {

                disable 'MissingTranslation'

            }

        }

    }

    buildToolsVersion '27.0.3'

}


allprojects {

    repositories {

        jcenter()

        maven {

            url "https://maven.google.com"

        }

        maven { url 'https://maven.fabric.io/public' }

    }

}


repositories {

    mavenCentral()

}

apply plugin: 'io.fabric'


dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {

        exclude group: 'com.android.support', module: 'support-annotations'

    })

    implementation 'com.android.support:appcompat-v7:25.+'

    implementation 'com.android.support:design:25.+'

    implementation 'com.android.support:support-v4:25.+'

    implementation 'com.android.support.constraint:constraint-layout:1.1.2'

    implementation 'com.roughike:bottom-bar:2.3.1'

    testImplementation 'junit:junit:4.12'


    implementation 'com.google.firebase:firebase-core:16.0.3'

    implementation 'com.google.firebase:firebase-database:16.0.1'

    implementation 'com.google.firebase:firebase-auth:16.0.3'

    implementation 'com.firebaseui:firebase-ui-auth:4.1.0'


    // Required only if Facebook login support is r6equired

    implementation 'com.facebook.android:facebook-android-sdk:4.27.0'


慕侠2389804
浏览 177回答 2
2回答

ITMISS

尝试在此处的文档中启用调试模式。1) 将这些行添加到 Manifest<meta-dataandroid:name="firebase_crashlytics_collection_enabled"android:value="false" />2) 初始化 Crashlytics 时,启用调试模式。final Fabric fabric = new Fabric.Builder(this)&nbsp; &nbsp; .kits(new Crashlytics())&nbsp; &nbsp; .debuggable(true)&nbsp; // Enables Crashlytics debugger&nbsp; &nbsp; .build();Fabric.with(fabric);&nbsp; &nbsp;&nbsp;
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java