Android 当我的应用程序崩溃时,我在firebase中没有收到crashlytics通知,为什么?

Android 当我的应用程序崩溃时,我在firebase中没有收到crashlytics通知,为什么?,android,android-studio,crashlytics,crashlytics-android,Android,Android Studio,Crashlytics,Crashlytics Android,当我的应用程序运行时,我想在firebase crashlytics中获取通知 撞车了,但没用 当我在上传符号的终端中运行命令sudo./gradlew crashlyticsuploadsymboldebug--stacktrace时,我收到错误:任务执行失败:app:compileDebugJavaWithJavac javax/xml/bind/JAXBException 这个网址呢 我正在build.gradle中使用以下代码 buildscript { repositories { m

当我的应用程序运行时,我想在firebase crashlytics中获取通知 撞车了,但没用

当我在上传符号的终端中运行命令sudo./gradlew crashlyticsuploadsymboldebug--stacktrace时,我收到错误:任务执行失败:app:compileDebugJavaWithJavac

javax/xml/bind/JAXBException

这个网址呢 我正在build.gradle中使用以下代码

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

dependencies {
// These docs use an open ended version so that our plugin
// can be updated quickly in response to Android tooling updates
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.28.1'
}
}
apply plugin: 'com.android.application'

apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'

// Enable Crashlytics NDK reporting
crashlytics {
enableNdk true

}

dependencies {
// ...

implementation 'com.google.firebase:firebase-analytics:17.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

// Add the Crashlytics NDK dependency
implementation 'com.crashlytics.sdk.android:crashlytics-ndk:2.1.1'
}
repositories {
maven { url 'https://maven.fabric.io/public' }
}

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.stepglobal.smartdriver"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
setProperty("archivesBaseName", applicationId + "-v" + versionCode + "(" + versionName + ")")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

dataBinding {
enabled = true
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-beta01'
implementation 'androidx.appcompat:appcompat-resources:1.1.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'

implementation 'com.squareup.retrofit2:retrofit:2.5.0'

implementation 'com.google.dagger:dagger:2.22.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.22.1'

implementation 'com.google.firebase:firebase-messaging:19.0.1'

implementation 'androidx.work:work-runtime:2.0.1'

implementation 'androidx.room:room-runtime:2.1.0'
annotationProcessor 'androidx.room:room-compiler:2.1.0'

implementation 'com.google.code.gson:gson:2.8.5'
// For Image Compressor
implementation 'id.zelory:compressor:2.1.0'

implementation 'com.squareup.picasso:picasso:2.71828'

implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation('com.crashlytics.sdk.android:crashlytics:2.10.0@aar') {
transitive = true;
}
implementation 'androidx.gridlayout:gridlayout:1.0.0'

testImplementation 'org.json:json:20140107'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.amitshekhar.android:android-networking:1.0.2'
implementation 'io.apisense:rhino-android:1.1.1'
implementation 'commons-io:commons-io:2.4'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
}

您在应用程序类中初始化了Crashlysis类吗?是的,我已经初始化了Crashlysis类。您是否遵循了,我认为您在项目级gradle文件夹中缺少了一些依赖项。是的,我遵循了这一点docs@RajatBeck下面是代码:buildscript{repositories{google()jcenter()maven{url'}}依赖项{classpath'com.android.tools.build:gradle:3.4.2'classpath'com.google.gms:google服务:4.3.2'classpath'io.fabric.tools:gradle:1.31.2'}}所有项目{repositories{googlejcenter()}}任务清理(类型:Delete){Delete rootProject.buildDir}