{"id":1362,"date":"2017-02-06T20:21:49","date_gmt":"2017-02-06T11:21:49","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1362"},"modified":"2017-02-13T14:21:01","modified_gmt":"2017-02-13T05:21:01","slug":"duplicate-files-copied-in-apk","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1362","title":{"rendered":"Duplicate files copied in APK"},"content":{"rendered":"<h2>\u75c7\u72b6<\/h2>\n<p>APK\u306e\u4f5c\u6210\u4e2d\u306b\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3059\u308b\u3002<\/p>\n<pre class=\"wrap:true lang:default highlight:0 decode:true \" >Error:Execution failed for task ':transformResourcesWithMergeJavaResForDebug'.\r\n&gt; com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF\/LICENSE<\/pre>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>jackson(OSS \u306e json parser)\u306eBUG<\/p>\n<ul>\n<li>ver. 2.2.2<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u56de\u907f\u7b56<\/h2>\n<p>build.gradle\u306b\u6b21\u306e\u8a18\u8ff0\u3092\u8ffd\u8a18\u3057\u30d5\u30a1\u30a4\u30eb\u91cd\u8907\u306e\u8b66\u544a\u3092\u7121\u8996\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >android {\r\n    ...\r\n    packagingOptions {\r\n        exclude 'META-INF\/DEPENDENCIES'\r\n        exclude 'META-INF\/LICENSE'\r\n        exclude 'META-INF\/LICENSE.txt'\r\n        exclude 'META-INF\/license.txt'\r\n        exclude 'META-INF\/NOTICE'\r\n        exclude 'META-INF\/NOTICE.txt'\r\n        exclude 'META-INF\/notice.txt'\r\n        exclude 'META-INF\/ASL2.0'\r\n    }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 APK\u306e\u4f5c\u6210\u4e2d\u306b\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u3067\u505c\u6b62\u3059\u308b\u3002 Error:Execution failed for task &#8216;:transformResourcesWithMergeJavaResForDebug&#8217;. &gt; co [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17],"class_list":["post-1362","post","type-post","status-publish","format-standard","hentry","category-memo","tag-android"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1362"}],"version-history":[{"count":4,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1362\/revisions"}],"predecessor-version":[{"id":1372,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1362\/revisions\/1372"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}