{"id":670,"date":"2014-08-28T14:16:39","date_gmt":"2014-08-28T05:16:39","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=670"},"modified":"2017-05-25T13:39:23","modified_gmt":"2017-05-25T04:39:23","slug":"java-jackson-java-json-processor%e3%81%ae%e5%b0%8e%e5%85%a5","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=670","title":{"rendered":"[JAVA] Jackson Java JSON-processor\u306e\u5c0e\u5165"},"content":{"rendered":"<p><a href=\"http:\/\/k-7016.hatenablog.com\/entry\/2013\/09\/17\/232241\">http:\/\/k-7016.hatenablog.com\/entry\/2013\/09\/17\/232241<\/a><\/p>\n<p>\u4e0a\u306e\u30b5\u30a4\u30c8\u304c\u308f\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n<p>jackson-annotations-2.x.x.jar<\/p>\n<p>jackson-core-2.x.x.jar<\/p>\n<p>jackson-databind-2.x.x.jar<\/p>\n<p>\u306e3\u3064\u3092\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u3066[\u4efb\u610f\u30d1\u30c3\u30b1\u30fc\u30b8]-[\u30d7\u30ed\u30d1\u30c6\u30a3] JAVA\u30d3\u30eb\u30c8\u30fb\u30d1\u30b9\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3067\u5916\u90e8jar\u8ffd\u52a0\u30673\u3064\u3068\u3082\u8ffd\u52a0 \u305d\u308c\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d3\u30eb\u30c8\u6642\u3001\u30af\u30e9\u30b9\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f<\/p>\n<p>[JAVA\u30d3\u30eb\u30c8\u30fb\u30d1\u30b9]\u306e[\u9806\u5e8f\u304a\u3088\u3073\u30a8\u30af\u30b9\u30dd\u30fc\u30c8]\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/p>\n<h2>[\u8ffd\u8a18 2017-05-25]<\/h2>\n<p>AndroidStudio\u306b\u306a\u3063\u3066\u304b\u3089\u306f\u3001Lib\u306e\u4e2d\u306b\u30b3\u30d4\u30da\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u53f3\u30af\u30ea\u30c3\u30af\u300c Add As Library \u300d\u3001gradle:app\u306e\u7de8\u96c6\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u3060\u3068\u3001\u5404\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u5165\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u3069\u3046\u3082\u91cd\u8907\u3057\u3066\u3044\u308b\u3089\u3057\u304f<\/p>\n<p>[java]<br \/>\nError:Execution failed for task &#8216;:app:transformResourcesWithMergeJavaResForDebug&#8217;.<br \/>\n&gt; com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF\/LICENSE<br \/>\n\tFile1: D:\\android_dev\\PsTutor\\app\\libs\\jackson-annotations-2.4.0.jar<br \/>\n\tFile2: D:\\android_dev\\PsTutor\\app\\libs\\jackson-core-2.4.2.jar<br \/>\n\tFile3: D:\\android_dev\\PsTutor\\app\\libs\\jackson-databind-2.4.2.jar<br \/>\n[\/java]<\/p>\n<p>\u4e0a\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u3001grable:app\u3067\u3001\u91cd\u8907\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u304f\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8ffd\u8a18\u304c\u5fc5\u8981\u304c\u3042\u308b\u3068\u306e\u3053\u3068<\/p>\n<p>[java]<br \/>\n    packagingOptions {<br \/>\n        exclude &#8216;META-INF\/DEPENDENCIES&#8217;<br \/>\n        exclude &#8216;META-INF\/LICENSE&#8217;<br \/>\n        exclude &#8216;META-INF\/LICENSE.txt&#8217;<br \/>\n        exclude &#8216;META-INF\/license.txt&#8217;<br \/>\n        exclude &#8216;META-INF\/NOTICE&#8217;<br \/>\n        exclude &#8216;META-INF\/NOTICE.txt&#8217;<br \/>\n        exclude &#8216;META-INF\/notice.txt&#8217;<br \/>\n        exclude &#8216;META-INF\/ASL2.0&#8217;<br \/>\n    }<br \/>\n[\/java]<\/p>\n<p>\u3053\u308c\u3067\u3001\u30d3\u30eb\u30c8\u304c\u901a\u3063\u305f\uff5e<\/pre>\n<p>\u4e0b\u8a18\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f<\/p>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"http:\/\/qiita.com\/Nunocky\/items\/c81f15b368ae7a144209\" data-lkc-id=\"877\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=qiita.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Qiita<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">5 Users<\/div> <div class=\"lkc-sns-po\">20 Pockets<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/http%3A%2F%2Fqiita.com%2FNunocky%2Fitems%2Fc81f15b368ae7a144209?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Android Studio\u3067 *.jar, *.so\u3092\u8ffd\u52a0\u3059\u308b - Qiita<\/div><div class=\"lkc-url\" title=\"http:\/\/qiita.com\/Nunocky\/items\/c81f15b368ae7a144209\">http:\/\/qiita.com\/Nunocky\/items\/c81f15b368ae7a144209<\/div><div class=\"lkc-excerpt\">Android Studio 1.0 (\u4ee5\u4e0bAS)\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u3002\u3068\u540c\u6642\u306b eclipse ADT plugin\u306e\u30d5\u30a7\u30fc\u30c9\u30a2\u30a6\u30c8\u3082\u767a\u8868\u3055\u308c\u305f\u305f\u3081\u3001\u4eca\u5f8c\u306e\u958b\u767a\u306f AS\u306b\u8ef8\u8db3\u3092\u79fb\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002\u4e00\u5fdc eclipse\u304b\u3089\u306e\u30d7\u30ed\u30b8\u30a7...<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"http:\/\/anton0825.hatenablog.com\/entry\/2015\/01\/16\/154147\" data-lkc-id=\"878\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=anton0825.hatenablog.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">\u65e5\u3005\u7cbe\u9032<\/div><div class=\"lkc-share\"> <div class=\"lkc-sns-hb\">3 Users<\/div><\/div><\/div><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"\/\/androiphone.uvs.jp\/wp-content\/uploads\/pz-linkcard\/cache\/6a13a0f2479dc1a4a18b32901d253eba36e0fedaf5881195e23ec5c6e5eb85c3.jpeg\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Android\u306ejackson\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u300cDuplicate files copied in APK META-INF\/...<\/div><div class=\"lkc-url\" title=\"http:\/\/anton0825.hatenablog.com\/entry\/2015\/01\/16\/154147\">http:\/\/anton0825.hatenablog.com\/entry\/2015\/01\/16\/154147<\/div><div class=\"lkc-excerpt\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304b\u3089\u60f3\u50cf\u3059\u308b\u306b\u3001\u8907\u6570\u306ejar\u306b\u540c\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u3063\u307d\u3044\u3002 \u91cd\u8907\u3057\u3066\u3044\u308b\u306e\u306f\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306a\u306e\u3067\u3001\u30d3\u30eb\u30c9\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u9664\u3044\u3066\u3084\u308b\u3068\u3088\u3044\u3002 \u3053\u308c\u306fjackson\u306e\u30d0\u30b0\u3060\u3051\u3069\u30012.3\u3067\u306f\u307e\u3060\u76f4\u3063\u3066\u306a\u3044\u3088\u3046\u3060\u3002 android { ... packagingOptions { exclude &#039;META-INF\/DEPENDENCIES&#039; exclude &#039;META-INF\/LICENSE&#039; exclude &#039;META-INF\/LICENSE.txt&#039; exclude &#039;META-INF\/license.txt&#039; exclude &#039;META-INF\/NOTICE&#039; e\u2026<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/k-7016.hatenablog.com\/entry\/2013\/09\/17\/232241 \u4e0a\u306e\u30b5\u30a4\u30c8\u304c\u308f\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u3067\u3059\u3002 jackson-annotations-2.x.x.jar jackson-c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[14],"tags":[],"class_list":["post-670","post","type-post","status-publish","format-standard","hentry","category-java","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=670"}],"version-history":[{"count":6,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":1480,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions\/1480"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}