如何解决crashlytics仪表板没有出现?还是无法启用crashlytics?
我按照here中的步骤在Android应用中添加了crashlytics 当我在Firebase控制台中转到crashlytics页面时,该页面仍显示如下
我不知道接下来会发生什么?我在应用程序中配置了东西并运行它,并使其崩溃,但页面仍然是这样。 我尝试卸载并安装该应用,并刷新了页面
所以也许我做错了配置 这是我的build.gradle(app)
apply plugin: 'com.android.application'
//apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.myapp.myappandroid"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "0.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
debuggable false
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
android {
testOptions.unitTests.includeAndroidResources = true
lintOptions {
checkReleaseBuilds false
// Or,if you prefer,you can continue to check for errors in release builds,// but continue the build even when errors are found:
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}
dependencies {
implementation fileTree(dir: 'libs',include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.cesards.android:cropimageview:1.0.2.1'
implementation 'com.android.volley:volley:1.1.0'
implementation 'me.dm7.barcodescanner:zbar:1.8.4'
implementation 'com.scottyab:rootbeer-lib:0.0.7'
implementation 'id.zelory:compressor:2.1.0'
api 'com.google.android.material:material:1.3.0-alpha01'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:4.1'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
androidTestImplementation 'androidx.test:core:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
implementation 'com.google.firebase:firebase-core:17.5.1'
///here I add the crashlytics
implementation platform('com.google.firebase:firebase-bom:25.12.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-messaging:20.1.6'
//noinspection GradleCompatible
implementation 'com.android.support:design:23.2.1'
implementation 'com.ismaeldivita.chipnavigation:chip-navigation-bar:1.3.1'
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
}
这是我的build.gradle(myappandroid)
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
classpath 'com.google.gms:google-services:4.3.4'
// classpath 'io.fabric.tools:gradle:1.31.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
请告诉我我做错了什么或错过了什么?预先感谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。