Java.lang.LinkageError: Paketversionen: jackson-core=2.13.3, jackson-databind=2.13.3, jackson-dataformat-xml=2.13.3, jacJava

Java-Forum
Anonymous
 Java.lang.LinkageError: Paketversionen: jackson-core=2.13.3, jackson-databind=2.13.3, jackson-dataformat-xml=2.13.3, jac

Post by Anonymous »

Ich habe versucht, Keyvault von Azure in meiner App zu implementieren, und nach der Implementierung von azure-identity:1.5.4 lib für DefaultAzureCredentialBuilder() wird ein Verknüpfungsfehler ausgegeben, der unten angegeben ist. Ich habe auch die bestimmte Version erzwungen und einige davon ausgeschlossen, aber das gleiche Problem besteht immer noch. Bitte schlagen Sie mir vor, wie ich eine frühere Version oder eine kollidierende Version erkennen kann, damit ich sie entfernen kann. Außerdem ist meine Kompilierungs-SDK-Version 32. Aktualisierter Gradle Abhängigkeiten unten.
Ich habe verwendet

Code: Select all

resolutlionStrategy { failOnVersionConflict()}
aber es zeigt jetzt keinen Konflikt.

Code: Select all

java.lang.LinkageError: Package versions: jackson-core=2.13.3, jackson-databind=2.13.3, jackson-dataformat-xml=2.13.3, jackson-datatype-jsr310=2.13.3, azure-core=1.31.0, Troubleshooting version conflicts:
at com.azure.core.implementation.jackson.ObjectMapperShim.createXmlMapper(ObjectMapperShim.java:82)
at com.azure.core.util.serializer.JacksonAdapter.(JacksonAdapter.java:82)
at com.azure.core.util.serializer.JacksonAdapter.(JacksonAdapter.java:59)
at com.azure.core.util.serializer.JacksonAdapter$SerializerAdapterHolder.(JacksonAdapter.java:114)
at com.azure.core.util.serializer.JacksonAdapter$SerializerAdapterHolder.access$000(JacksonAdapter.java:110)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.NoSuchMethodError: No static method newFactory(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/stream/XMLInputFactory; in class Ljavax/xml/stream/XMLInputFactory; or its super classes (declaration of 'javax.xml.stream.XMLInputFactory' appears in /data/app/~~sFZqRHFT2xtp6Ogx--
at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:115)
at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:101)
at com.fasterxml.jackson.dataformat.xml.XmlFactory.(XmlFactory.java:85)
at com.fasterxml.jackson.dataformat.xml.XmlMapper.(XmlMapper.java:127)
at com.fasterxml.jackson.dataformat.xml.XmlMapper.builder(XmlMapper.java:218)
at com.azure.core.implementation.jackson.ObjectMapperFactory.createXmlMapper(ObjectMapperFactory.java:90)

Gradle-Abhängigkeiten

Code: Select all

     implementation("com.azure:azure-sdk-bom:1.2.5"){
force(true)
}
implementation ('com.fasterxml.jackson.core:jackson-core'){
version{
strictly("2.13.4")
}
force(true)
}
implementation ('com.fasterxml.jackson.core:jackson-databind:2.13.4'){
force(true)
version{
strictly("2.13.4")
}
}
implementation ('com.fasterxml.jackson.dataformat:jackson-dataformat-xml'){
version{
strictly("2.13.4")
}
force(true)
}

implementation ('com.fasterxml.jackson.core:jackson-annotations:2.13.4'){
version{
strictly("2.13.4")
}
force(true)
}

implementation ('com.fasterxml.jackson.datatype:jackson-datatype-jsr310'){
version{
strictly("2.13.4")
}
force(true)
}
//azure keyvault lib
implementation ('com.azure:azure-core'){
version{
strictly("1.32.0")
}
force(true)
}
implementation ('com.azure:azure-security-keyvault-keys:4.4.6')
implementation 'com.azure:azure-security-keyvault-secrets:4.4.6'
implementation (group: 'com.microsoft.azure', name: 'azure-storage', version: '8.6.6')
implementation (group: 'com.azure', name: 'azure-storage-blob', version: '12.19.0')

implementation("com.azure:azure-core-http-netty:1.12.5"){
force(true)
force = true
}
implementation("com.microsoft.azure:msal4j:1.13.0"){
force(true)
}
implementation("com.microsoft.azure:msal4j-persistence-extension:1.1.0"){
force(true)
}
implementation group: 'javax.xml.stream', name: 'stax-api', version: '1.0-2'

implementation ('com.google.guava:guava:27.0.1-android'){
force(true)
force = true
}

implementation ('com.azure:azure-identity'){
version{
strictly("1.5.5")
}
exclude group: 'com.azure', module: 'azure-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.dataformat', module: 'jackson-dataformat-xml'
exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jsr353'
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post