我试图让 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'
2 回答
ITMISS
TA贡献1871条经验 获得超8个赞
尝试在此处的文档中启用调试模式。
1) 将这些行添加到 Manifest
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
2) 初始化 Crashlytics 时,启用调试模式。
final Fabric fabric = new Fabric.Builder(this)
.kits(new Crashlytics())
.debuggable(true) // Enables Crashlytics debugger
.build();
Fabric.with(fabric);
添加回答
举报
0/150
提交
取消