gpt4 book ai didi

java - 程序类型已经存在 : org. codehaus.jackson

转载 作者:行者123 更新时间:2023-12-03 05:40:28 31 4
gpt4 key购买 nike

截至今天,我突然在一个我有一段时间没有打开但以前工作的旧项目中遇到错误。

错误:程序类型已经存在:org.codehaus.jackson.JsonParser$1

它随机发生在各种 org.codehaus.jackson 模块中。

我认为这是因为包括使用 jackson-mini-1.9.6.jar 和引用 maven 存储库的项目,所以我尝试使用 exclude group: 和 exclude module: 的每个变体排除它,但没有运气。

来自主项目的 build.gradle

enter image description here

build.gradle 来自包含的项目

enter image description here

我什至查看了 gradle app:dependencies 并在那里看到了它们,但我就是无法将其排除在外。从项目中删除它不起作用,因为那里需要它。

    Executing tasks: [androidDependencies]

:syncFramework:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

debugRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

debugAndroidTest
debugAndroidTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

debugAndroidTestRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

debugUnitTest
debugUnitTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

debugUnitTestRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

release
releaseCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

releaseRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

releaseUnitTest
releaseUnitTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar

releaseUnitTestRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
\--- net.zetetic:android-database-sqlcipher:3.5.7@aar
:syncFrameworkPlain:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

debugRuntimeClasspath - Dependencies for runtime/packaging
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

debugAndroidTest
debugAndroidTestCompileClasspath - Dependencies for compilation
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

debugAndroidTestRuntimeClasspath - Dependencies for runtime/packaging
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

debugUnitTest
debugUnitTestCompileClasspath - Dependencies for compilation
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

debugUnitTestRuntimeClasspath - Dependencies for runtime/packaging
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

release
releaseCompileClasspath - Dependencies for compilation
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

releaseRuntimeClasspath - Dependencies for runtime/packaging
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

releaseUnitTest
releaseUnitTestCompileClasspath - Dependencies for compilation
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar

releaseUnitTestRuntimeClasspath - Dependencies for runtime/packaging
\--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar
:wundoffice:androidDependencies
debug
debugCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: debug)
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

debugRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

debugAndroidTest
debugAndroidTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: debug)
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

debugAndroidTestRuntimeClasspath - Dependencies for runtime/packaging

debugUnitTest
debugUnitTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: debug)
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

debugUnitTestRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: debug)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

release
releaseCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: release)
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

releaseRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

releaseUnitTest
releaseUnitTestCompileClasspath - Dependencies for compilation
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: release)
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

releaseUnitTestRuntimeClasspath - Dependencies for runtime/packaging
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\itextg-5.5.1.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\licensekey-1.0.2.jar
+--- D:\Android-Studio-Workspace\Wundoffice\wundoffice\libs\aapt2-3.2.1-4818971-windows.jar
+--- :syncFramework (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFramework\libs\jackson-mini-1.9.6.jar
+--- :syncFrameworkPlain (variant: release)
+--- D:\Android-Studio-Workspace\Wundoffice\syncFrameworkPlain\libs\jackson-mini-1.9.6.jar
+--- com.google.android.gms:play-services:5.0.89@aar
+--- com.google.code.ksoap2-android:ksoap2-android:3.6.2@jar
+--- net.zetetic:android-database-sqlcipher:3.5.7@aar
+--- com.android.support:support-v4:19.1.0@jar
+--- com.google.code.ksoap2-android:ksoap2-j2se:3.6.2@jar
+--- com.google.code.ksoap2-android:ksoap2-base:3.6.2@jar
+--- com.squareup.okhttp3:okhttp-urlconnection:3.2.0@jar
+--- net.sourceforge.kxml:kxml:2.2.4@jar
+--- net.sourceforge.kobjects:kobjects-j2me:0.0-SNAPSHOT-20040926-2@jar
+--- com.squareup.okhttp3:okhttp:3.2.0@jar
+--- org.xmlpull:xmlpull:1.1.3.3@jar
\--- com.squareup.okio:okio:1.6.0@jar

谢谢你的帮助

最佳答案

从 so,so 旧的 org.codehaus 库切换到最新的并将所有导入更改为 com.fasterxml 解决了冲突

关于java - 程序类型已经存在 : org. codehaus.jackson,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53323017/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com