运行应用程序时获取e:java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException错误

运行应用程序时获取e:java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException错误,java,android,gradle,Java,Android,Gradle,我在运行应用程序时遇到了这个奇怪的错误。 e:java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException 当前渐变版本为:3.5.1 如果我将gradle版本升级到4.2.0,则会出现以下错误 A problem occurred configuring project ':app'. > Could not resolve all artifacts for configuration ':app:classpath'.

我在运行应用程序时遇到了这个奇怪的错误。
e:java.lang.NoClassDefFoundError:javax/xml/bind/JAXBException
当前渐变版本为:
3.5.1

如果我将gradle版本升级到
4.2.0
,则会出现以下错误

 A problem occurred configuring project ':app'.
> Could not resolve all artifacts for configuration ':app:classpath'.
   > Could not find com.google.code.gson:gson:2.8.5.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.gms:google-services:4.3.3
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0
   > Could not find com.google.guava:guava:27.0.1-jre.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/guava/guava/27.0.1-jre/guava-27.0.1-jre.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.gms:google-services:4.3.3
         project :app > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
   > Could not find com.google.code.findbugs:jsr305:3.0.2.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
   > Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.11/kotlin-stdlib-jdk8-1.3.11.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.gms:google-services:4.3.3 > com.google.android.gms:strict-version-matcher-plugin:1.2.1
   > Could not find org.apache.httpcomponents:httpclient:4.5.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0
   > Could not find org.apache.httpcomponents:httpmime:4.5.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0
   > Could not find commons-cli:commons-cli:1.4.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/commons-cli/commons-cli/1.4/commons-cli-1.4.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0
   > Could not find commons-io:commons-io:2.6.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/commons-io/commons-io/2.6/commons-io-2.6.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0
   > Could not find com.google.guava:guava:27.0.1-jre.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/google/guava/guava/27.0.1-jre/guava-27.0.1-jre.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :app > com.google.firebase:firebase-crashlytics-gradle:2.3.0 > com.google.firebase:firebase-crashlytics-buildtools:2.3.0

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
请注意,此应用程序之前运行良好,由另一位开发人员开发

我有什么遗漏吗?如何解决这个问题