我刚刚删除了最新的Jackson 2.2.0库,并在Eclipse中构建时出现以下错误:
[2013-04-30 23:46:34 - app] Android Launch!
[2013-04-30 23:46:34 - app] adb is running normally.
[2013-04-30 23:46:34 - app] Performing com.MainActivity activity launch
[2013-04-30 23:46:34 - app] Uploading app.apk onto device 'emulator-5554'
[2013-04-30 23:46:35 - app] Installing app.apk...
[2013-04-30 23:46:38 - app] Installation error: INSTALL_PARSE_FAILED_NO_CERTIFICATES
[2013-04-30 23:46:38 - app] Please check logcat output for more details.
[2013-04-30 23:46:38 - app] Launch canceled!
[2013-04-30 23:48:15 - app] Error generating final archive: Found duplicate file for APK: NOTICE
Origin 1: /workspace/app/libs/jackson-databind-2.2.0.jar
Origin 2: /workspace/app/libs/jackson-core-2.2.0.jar
清洁和重建没有任何作用。
答案 0 :(得分:2)
这似乎是杰克逊图书馆中重复文件的错误。从核心库中删除这些文件为我修复了它。
以下命令将消除重复文件。 (并且可能会消除任何依赖于META-INF文件的maven / repository信息。对我来说不是问题,但可能是其他人的问题。)
zip -d jackson-core-2.2.0.jar NOTICE
zip -d jackson-core-2.2.0.jar LICENSE
zip -d jackson-core-2.2.0.jar META-INF*
答案 1 :(得分:2)
issue已经提出,并且当前来源中提供了修复程序。您还可以等待Jackson 2.2.1。