{ "id": "160962", "key": "TIMOB-23502", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-23T14:02:58.000+0000", "created": "2016-06-09T23:27:53.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-tooling" ], "versions": [], "issuelinks": [ { "id": "54160", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "165706", "key": "TIMOB-24363", "fields": { "summary": "Android: Prevent 'duplicate entry assets/README' error", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "53381", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "164436", "key": "TIMOB-24118", "fields": { "summary": "Android: java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json when having both ti.admob & ti.map modules in the project", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-16T07:40:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Steps to Reproduce\r\nBuild android custom modules. They both produce a org/appcelerator/titanium/gen/bindings.json file. Then when signing the APK Duplicate entry: org/appcelerator/titanium/gen/bindings.json occurs. This issue is occurred before and is occurring now with other users: http://appcelerator287.rssing.com/browser.php?indx=18050476&item=2527 http://stackoverflow.com/questions/36953652/duplicate-entry-org-appcelerator-titanium-gen-bindings-json-in-custom-android-m\r\n\r\nh3. Actual Result\r\nFailed to sign APK\r\n\r\nh3. Expected Result\r\nSuccess to sign APK. This issue did not occur before. The modules have not changed, something in an update has broken it.", "attachment": [ { "id": "59557", "filename": ".log", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-09T23:27:55.000+0000", "size": 725262, "mimeType": "text/plain" }, { "id": "59558", "filename": "diagnostic1533847997741429310.log", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-09T23:28:32.000+0000", "size": 119490, "mimeType": "text/plain" }, { "id": "59559", "filename": "Screen Shot 2016-06-09 at 3.48.33 PM.png", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-09T23:28:32.000+0000", "size": 102447, "mimeType": "image/png" }, { "id": "59560", "filename": "Screen Shot 2016-06-09 at 3.54.45 PM.png", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-09T23:28:33.000+0000", "size": 29109, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Duplicate entry: org/appcelerator/titanium/gen/bindings.json in custom module", "creator": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.6.0", "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "388245", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any idea what is causing this? ", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-13T23:10:06.000+0000", "updated": "2016-06-13T23:10:06.000+0000" }, { "id": "388254", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~scconway8@gmail.com] we will need to investigate to see what's causing this issue.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-14T02:07:15.000+0000", "updated": "2016-06-14T02:07:15.000+0000" }, { "id": "388926", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~msamah] Just to clarify, this is happening when building the module or when building an app with this module?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-06-23T14:10:10.000+0000", "updated": "2016-06-23T14:10:10.000+0000" }, { "id": "388985", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~cbarber] I haven't been able to reproduce it. But I believe it's when:-\r\n# Building 2 modules\r\n# Using both modules and building an app (Errors occur at this step due to duplicate org/appcelerator/titanium/gen/bindings.json)", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-24T01:27:18.000+0000", "updated": "2016-06-24T01:27:18.000+0000" }, { "id": "388986", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~aislam] If you have more information to help clarify it, please do. Thank you. :)", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-24T01:27:58.000+0000", "updated": "2016-06-24T01:27:58.000+0000" }, { "id": "389018", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi [~cbarber] [~msamah],\r\nThis is happening when building an app with this module.\r\n\r\n*Steps to reproduce :*\r\n1. Create a module with Appcelerator Studio 4.6.0 and SDK 5.3.0.GA.\r\n2. Create a simple classic new project.\r\n3. Include that module in new project (tiapp.xml).\r\n4. Build apps on android devices. (you will get error now)\r\n\r\n*For module investigate:*\r\nCheck module's following path :\r\norg/appcelerator/titanium/bindings/bindings.json\r\norg/appcelerator/titanium/gen/test.json\r\n\r\n\r\nThanks", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-06-24T09:30:22.000+0000", "updated": "2016-06-24T20:13:15.000+0000" }, { "id": "389162", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Having the same issue when compiling my module (https://github.com/m1ga/com.miga.gifview)\r\nSome more details on stackoverflow: \r\nhttp://stackoverflow.com/questions/36953652/duplicate-entry-org-appcelerator-titanium-gen-bindings-json-in-custom-android-m", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-06-27T19:49:14.000+0000", "updated": "2016-06-27T19:49:14.000+0000" }, { "id": "389373", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "I've checked the part that compiles the module. That portion has been changed in a while. I don't think it would be the compiling of the module that causes the issue. Will need to look at the other parts.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-29T05:33:57.000+0000", "updated": "2016-06-29T05:33:57.000+0000" }, { "id": "389378", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Not sure but is https://github.com/appcelerator/titanium_mobile/pull/7866 related some how?\r\n\r\nHmm. Perhaps not.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-29T06:13:07.000+0000", "updated": "2016-06-29T06:13:59.000+0000" }, { "id": "390672", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same issue here - when I build an Android Module and then include it in the project and Build the Project I get this error....", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-14T04:12:14.000+0000", "updated": "2016-07-14T04:12:14.000+0000" }, { "id": "391291", "author": { "name": "benpeters49", "key": "benpeters49", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there a solution for this? I'm still seeing this error when building and and including modules", "updateAuthor": { "name": "benpeters49", "key": "benpeters49", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-22T14:14:25.000+0000", "updated": "2016-07-22T14:14:25.000+0000" }, { "id": "392655", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am still getting this issue. Now when I build the gen/bindings.json is still present in the .jar files.", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-08T19:07:04.000+0000", "updated": "2016-08-08T19:07:04.000+0000" }, { "id": "392727", "author": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have the same issue - can no longer build app for Android. This is critical, please fix / update ASAP.", "updateAuthor": { "name": "john.staunton", "key": "john.staunton", "displayName": "John Staunton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-09T13:12:12.000+0000", "updated": "2016-08-09T13:12:12.000+0000" }, { "id": "392896", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Did everybody quit at Appcelerator or what? Are we expected to just abandon all our legacy modules and start using Hyperloop? This is having rather dire consequences to a bunch of us and seems rather unprofessional to not have a solution to such an important issue. ", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-10T20:12:12.000+0000", "updated": "2016-08-10T20:12:25.000+0000" }, { "id": "393023", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apparently this is the answer my friends, from the Appcelerator Team(asked by me personally): \r\n\r\nHi,\r\nThanks for your reply. Support android *.aar will fixed in our next release Release 6.0.0.\r\nSorry for the inconvenience. TIMOB-23502 will solved in Release 6.1.0.\r\nIn the mien time to develop android module , I recommend you to use ANT build.\r\nhttp://docs.appcelerator.com/platform/latest/#!/guide/Installing_Ant\r\nRun as Ant Build: http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Project-section-43289002_AndroidModuleProject-RunasAntBuild", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-12T15:52:40.000+0000", "updated": "2016-08-12T15:52:40.000+0000" }, { "id": "393033", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From trial and error I have found that running as an ant build does not fix the issue because the jar file created still has a gen/bindings.json file. This is still seen as a duplicate when signing and crashes.", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-12T16:22:47.000+0000", "updated": "2016-08-12T16:22:47.000+0000" }, { "id": "393097", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi, \r\nI have tested this issue with Appcelerator Studio, build: 4.7.0.201607250649, SDK 5.4.0.GA and NDK 10. So far I am unable to reproduce it. Create a test android module using ANT build. It's working fine. \r\nNo duplicate crash in Ant Build.\r\nSteps:\r\n\r\n1. Create a test module using Appcelerator Studio, build: 4.7.0.201607250649, SDK 5.4.0.GA and NDK 10\r\n2. Include NDK location in build.properties : android.ndk=/Users/zzz/Documents/android-ndk-r10\r\n3. Run as Ant Build\r\n4. Find the build module in project dist folder.\r\n5. Create a classic test project and include that module.\r\n6. Run the test project.\r\n\r\nRegards,\r\nAminul", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-08-14T15:30:51.000+0000", "updated": "2016-08-14T15:30:51.000+0000" }, { "id": "393157", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, but just one thing, the main reason the issue is happening: did you try it with two modules? Build two test modules then run it. The issue obviously won't occur with just one module as duplicates need at least two of course.", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T14:54:53.000+0000", "updated": "2016-08-15T14:54:53.000+0000" }, { "id": "393162", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Look. When I build a module using ANT or just by using the GUI it now produces an org/appcelerator/titanium/gen/bindings.json file. I am using NDK 10 in build properties as well, always have been. I compare my jars built for same module with same settings but post 5.1.1GA I believe, can't remember when started happening could be even older builds, and this gen/bindings.json file did not exist. If I delete them then the build complains, if I have them it complains. ", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T15:21:27.000+0000", "updated": "2016-08-15T15:21:27.000+0000" }, { "id": "393172", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to remove the gen/bindings.json file by doing the following:\r\n\r\n(1) Set Java Compiler to 1.8\r\n\r\n(2) Update build.properties:\r\ntitanium.platform=/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/5.4.0.GA/android\r\nandroid.platform=/Users/xxx/Library/android-sdk-macosx/platforms/android-23\r\nandroid.ndk=/Users/xxx/android-sdks/build-tools/22.0.1/android-ndk-r10e\r\n\r\n(3) Change all libraries in build path to use 5.4.0.GA JARS\r\n\r\n(4) Delete build and dist folders then rebuild using ANT *** WIll not work otherwise, still produces gen file if you package-->android module\r\n\r\n\r\nDO not use package option to build, go to build.xml, right click-->Run as Ant Build\r\n\r\nSuccessful project build :-)", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-15T16:20:22.000+0000", "updated": "2016-08-24T15:30:23.000+0000" }, { "id": "393254", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~scconway8@gmail.com] (y)\r\nFantastic news. I guess that solves that mystery? :)", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-16T08:16:55.000+0000", "updated": "2016-08-16T08:16:55.000+0000" }, { "id": "394009", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried Sean Conway solution, but didn't worked for me. Now the duplications error appears on application build. ", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-23T23:38:22.000+0000", "updated": "2016-08-23T23:38:22.000+0000" }, { "id": "394106", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Flavio Lacerda Did you use ANT to make the build? DO not use package option to build, go to build.xml, right click-->Run as Ant Build. Then grab the zip folder from the android/dist folder, you should be able to check the jar in the dist folder and see whether or not it has the gen file. If you followed my method it should not, and if it does then do not copy it over to the application. SImply rename the .jar to .zip and look at its contents. The duplication errors were happening on the applications build for me as well with the normal package option in Appcelerator.", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-24T15:28:35.000+0000", "updated": "2016-08-24T15:32:41.000+0000" }, { "id": "394315", "author": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Sean Conway. Thanks a lot. One of my modules was not with 5.4.0 and was generating the gen file. When i changed the build.properties to 5.4.0 worked! Thanks a lot.\r\n\r\nThis is critical! Must be fixed.\r\n\r\nRegards.", "updateAuthor": { "name": "flaviolacer", "key": "flaviolacer", "displayName": "Flavio Lacerda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-24T23:28:16.000+0000", "updated": "2016-08-24T23:28:16.000+0000" }, { "id": "399502", "author": { "name": "dakazmier", "key": "dakazmier", "displayName": "Michael Kazmier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@sean Conway - Thank you for your work around! I too can confirm that after rebuilding all 8 modules in our project using your steps above, we can once again build!!", "updateAuthor": { "name": "dakazmier", "key": "dakazmier", "displayName": "Michael Kazmier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-20T16:18:24.000+0000", "updated": "2016-10-20T16:18:24.000+0000" }, { "id": "399860", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8551", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-26T12:17:31.000+0000", "updated": "2016-10-26T12:17:31.000+0000" }, { "id": "402423", "author": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "body": "I had this problem, but with this fix has been resolved.\r\nBut now a new problem appears:\r\n\r\n{code:java}\r\n[ERROR] Failed to sign apk:\r\n[ERROR] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README\r\n{code}", "updateAuthor": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-01T19:19:38.000+0000", "updated": "2016-12-01T19:20:10.000+0000" }, { "id": "402425", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Vittoria Sorbera Never seen this issue and am not having any issues with SDK 5.5.1.GA. Which version of the SDK are you using? I suggest you do my steps above listed and also rebuild all modules using Node v4+ with at least 5.5.x sdk. On somewhat of a side not: Personally, I have taken to just building with ANT as (a) I find Appcelerator Studio tedious to use on my Macbook with 8g RAM as it is very slow, so I use all CLI. With ANT you can just then write a bash script to build the module and copy it to your app.", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T19:36:52.000+0000", "updated": "2016-12-01T19:36:52.000+0000" }, { "id": "402428", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Vittoria Sorbera I do something like this for my ANT bash. https://gist.github.com/SeanChristopherConway/387b577b9fead533dc0d4fa3a17edf31", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T19:39:48.000+0000", "updated": "2016-12-01T19:39:48.000+0000" }, { "id": "402429", "author": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Sean Conway,\r\nI'm using:\r\n\r\n* Ti SDK 6.0.0.GA\r\n* node v4.6.1\r\n* ndk android-ndk-r13b\r\n* android build-tool 25.0.0\r\n* google play services 10.0.1 (rev 38)\r\n\r\nand I use only the cli to build my module:\r\n\r\n{code:java}\r\nappc run -p android --build-only\r\n{code}\r\n\r\nI did the android build of these two modules:\r\nti.admob (https://github.com/appcelerator-modules/ti.admob)\r\nti.ga (https://github.com/benbahrenburg/Ti.GA)\r\n\r\nIndividually they work properly, but if I add them both, I get the above error.\r\n\r\nBefore of https://github.com/appcelerator/titanium_mobile/pull/8551 fix, I received the error\r\n\r\n\r\n{code:java}\r\n[ERROR] Failed to sign apk:\r\n[ERROR] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json\r\n{code}\r\n", "updateAuthor": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-01T19:52:31.000+0000", "updated": "2016-12-01T19:52:31.000+0000" }, { "id": "402430", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Did you check the jars to make sure they do not have the same classes? ", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T19:57:00.000+0000", "updated": "2016-12-01T19:57:00.000+0000" }, { "id": "402432", "author": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "body": "Certainly. My first problem was due to the fact that there were some classes in common in google play services of the two modules. So I created first an identical jar file, which contained all the necessary classes to both modules (using this script that I upgraded in my github https://github.com/Astrovic/Google-Play-Service-Lite). But now I have this new problem..\r\n\r\nIn any case, if I remove or rename _*assets/README*_ in one of the two modules to create the build, the modules work together. So I think it's some bug..", "updateAuthor": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-01T20:06:09.000+0000", "updated": "2016-12-01T20:06:09.000+0000" }, { "id": "402433", "author": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Vittorio Sorbera Sounds like it. Perhaps file a new JIRA with all your specific details, etc. Good luck, am not working with those modules currently so have no other feedback. Will do if I come across anything :-)", "updateAuthor": { "name": "scconway8@gmail.com", "key": "scconway8@gmail.com", "displayName": "Sean Conway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-01T20:10:26.000+0000", "updated": "2016-12-01T20:10:26.000+0000" }, { "id": "403231", "author": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "body": "@Virrorio and @Sean. Thanks for your discussion here. It got me going! FYI, I ended up building with a nightly build (6.1.0.v20161212041915) and deleting all occurrences of `assets/README` files. Yuck! With 11 Android modules in my project, this was a time-consuming process. I hope this helps someone. ", "updateAuthor": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "created": "2016-12-13T03:17:22.000+0000", "updated": "2016-12-13T03:17:22.000+0000" }, { "id": "404724", "author": { "name": "christian.j.green@gmail.com", "key": "christian.j.green@gmail.com", "displayName": "Christian Green", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to get rid of the \"duplicates binding issue\" with the latest 6.1 nightly build which led the to \"assets/README\" duplicate error. Removing assets/README then throws \"[MODULE]is missing bindings json file\"\r\n\r\nHas anyone been able to resolve this?", "updateAuthor": { "name": "christian.j.green@gmail.com", "key": "christian.j.green@gmail.com", "displayName": "Christian Green", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-17T19:04:18.000+0000", "updated": "2017-01-17T19:04:18.000+0000" }, { "id": "404948", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening for back port", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T17:41:44.000+0000", "updated": "2017-01-20T17:41:44.000+0000" }, { "id": "405064", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8773\r\n\r\nAnd for the {{README}} issue, it would be good to have an ticket focussing on that particular issue. Then we can see if we include that in 6.0.2 as well. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-23T14:02:58.000+0000", "updated": "2017-01-23T14:02:58.000+0000" }, { "id": "405282", "author": { "name": "awaldman", "key": "awaldman", "displayName": "Andy Waldman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Wednesday 25th January:\r\n\r\nEnvironment:\r\nAppcelerator Command-Line Interface, version 6.1.0 \r\nAndroid 7.1 (Google Pixel) \r\nOperating System Name: MacOS Sierra \r\nOperating System Version: 10.12.1 \r\nNode.js Version: 4.5.0 \r\nNPM: 4.2.8 \r\nAppc NPM: 4.2.8 \r\nTitanium SDK Version: 6.0.2.v20170123140026 and 6.0.0.GA, 6.1.0.v20170124071525\r\nXcode: 8.2.1 \r\nStudio Build: 4.8.1.201612050850\r\n \r\nafter testing this with all three of these SDK versions, i can confirm the issue is fixed, however\r\n\r\nAfter then taking the steps to try to reproduce i including all the modules in the builds and come up with the duplicate read me error, on 6.0.2.v20170123140026 and 6.1.0.v20170124071525\r\n\r\nverify the steps:\r\n\r\nStep 1) Build classic app with the SDK's above including all the modules \r\nStep 2) Build and Run in both studio and CLI ( CLI command appc run -p android --build-only) run in app directory \r\nStep 3) Error for duplicate read me is produced \r\n\r\n\r\n{code:java}\r\n[ERROR] Failed to sign apk:\r\n[ERROR] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README\r\n{code}\r\n\r\nDue to another ticket being created for the readme issue, i will close this ticket on the verification of it being fixed\r\n", "updateAuthor": { "name": "awaldman", "key": "awaldman", "displayName": "Andy Waldman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T17:53:07.000+0000", "updated": "2017-01-25T17:53:07.000+0000" }, { "id": "405507", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Same here... just stumbled on this issue:\r\n\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-01-27T18:32:24.000+0000", "updated": "2017-01-27T18:32:24.000+0000" }, { "id": "405508", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "So, I guess this issue needs more clarification.\r\n\r\nI've managed to compile two Android module for api 3 (Ti SDK 6.0). The modules compile all good.\r\n\r\nWhen I add them to the project, and run the app, I get this error:\r\n[ERROR] : Failed to sign apk: \r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-01-27T18:35:12.000+0000", "updated": "2017-01-27T18:35:12.000+0000" }, { "id": "405511", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Tried it with Nightly Build: 6.1.0.v20170126175503\r\n\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-01-27T18:40:01.000+0000", "updated": "2017-01-27T18:40:01.000+0000" }, { "id": "405536", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Update:\r\n\r\nAfter removing the README from assets/README both Android Modules & then compiled them (with 6.0.1.GA) & 6.1.0v2017 (today's)\r\n\r\nWhen I add both, and run the Ti App, now I get the other issue:\r\n```\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json\r\n```", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-01-27T21:15:03.000+0000", "updated": "2017-01-27T21:15:03.000+0000" }, { "id": "405572", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "I'm having the same issue with 2 other Android modules (ti.draggable & com.animecys.animator)\r\nWhat I've done is:\r\n1- Downloaded latest Nightly Build (Ti 6.1.0v20170127....)\r\n2- Updated the Module's manifest to use 6.1.0v20170127 sdk for both modules\r\n3- Deleted README file (located in `proj/assets/README`) for both modules\r\n4- Compiled the module through `appc run --build-only`\r\n5- Added both Modules to a Ti App project\r\n\r\nWhen I run the App, I still get:\r\n\r\n{code:javascript}\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: org/appcelerator/titanium/gen/bindings.json\r\n{code}", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-01-28T15:18:17.000+0000", "updated": "2017-01-28T15:18:17.000+0000" }, { "id": "406155", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "body": "Same error here.\r\nPatch applied, same error:\r\n\r\n[ERROR] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README", "updateAuthor": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-02T16:03:04.000+0000", "updated": "2017-02-02T16:03:04.000+0000" }, { "id": "406156", "author": { "name": "benpeters49", "key": "benpeters49", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was getting the assets/README error but after deleting the README files from my modules, everything is working fine.\r\n\r\nIf you don't want to re build every module, from the terminal go to the module directory and enter \" zip -d your-modules-jar-file.jar assets/README.txt \"", "updateAuthor": { "name": "benpeters49", "key": "benpeters49", "displayName": "Ben", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-02T16:08:38.000+0000", "updated": "2017-02-02T16:08:38.000+0000" }, { "id": "406157", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "(TIMOB-24363)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-02T16:08:43.000+0000", "updated": "2017-02-02T16:08:43.000+0000" }, { "id": "406636", "author": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "body": "Thanks to [~benpeters49]'s suggestion I was also able to delete the duplicate bindings.json from an already compiled module without need to rebuild by doing:\r\n\r\n{{zip -d your-module-jar-file.jar org/appcelerator/titanium/gen/bindings.json}}\r\n\r\nThis was performed that had been compiled with v.6.0.1 and by running ti build -p android --build-only\r\n\r\n", "updateAuthor": { "name": "adampax", "key": "adampax", "displayName": "Adam Paxton", "active": true, "timeZone": "America/New_York" }, "created": "2017-02-08T23:26:35.000+0000", "updated": "2017-02-08T23:26:35.000+0000" }, { "id": "415275", "author": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "SDK 6.0.3.GA still has this issue.\r\n\r\nAdams solution does work though.", "updateAuthor": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2017-03-23T12:23:32.000+0000", "updated": "2017-03-23T12:23:32.000+0000" }, { "id": "417754", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "It this solved?\r\ntoday:\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README\r\n", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-04-20T13:06:42.000+0000", "updated": "2017-04-20T13:06:42.000+0000" }, { "id": "417761", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~Pietro] Yes, you may want to recompile your module using the latest SDK", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-20T13:55:23.000+0000", "updated": "2017-04-20T13:55:23.000+0000" }, { "id": "417762", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "Gary Mathews , no i remove all the modules and the problem seems to be ti.map\r\n[ERROR] : Failed to sign apk:\r\n[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-04-20T14:06:03.000+0000", "updated": "2017-04-20T14:06:03.000+0000" }, { "id": "417763", "author": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "As I wrote on 23 march; it's not fixed in 6.0.3.GA. You can remove the bindings from the jar file by running:\r\n\r\nzip -d your-module-jar-file.jar org/appcelerator/titanium/gen/bindings.json\r\n", "updateAuthor": { "name": "arif", "key": "arif", "displayName": "Arjan", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2017-04-20T14:09:24.000+0000", "updated": "2017-04-20T14:09:24.000+0000" }, { "id": "417764", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "Well I used you command but this is the 2 result:\r\nzip -d google-play-services-base.jar org/appcelerator/titanium/gen/bindings.json\r\n\tzip warning: name not matched: org/appcelerator/titanium/gen/bindings.json\r\n\r\nzip error: Nothing to do! (google-play-services-base.jar)\r\n\r\nzip -d google-play-services-map.jar org/appcelerator/titanium/gen/bindings.json\r\n\tzip warning: name not matched: org/appcelerator/titanium/gen/bindings.json\r\n\r\nzip error: Nothing to do! (google-play-services-map.jar)", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-04-20T14:17:28.000+0000", "updated": "2017-04-20T14:17:28.000+0000" }, { "id": "417766", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "Apoligize me guys! I was writing the code you gave me but my problem was readme file.\r\nFor those who have my same problem here is the solution: navigate with command line into the ti.map folder, find last version and write:\r\n{color:red}zip -d map.jar assets/README{color}\r\n\r\nResult:\r\ndeleting: assets/README", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-04-20T14:25:15.000+0000", "updated": "2017-04-20T14:25:15.000+0000" }, { "id": "419450", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have the issue too by signing an app with module Ti.Chromecast. This module uses googleplay-services and support.v7.mediarouter. MY SDK is 5.5.1. I cannot use a 6-version, because a streaming module is only available with old shared objects.", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-10T09:22:50.000+0000", "updated": "2017-05-10T09:22:50.000+0000" }, { "id": "419774", "author": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "body": "Now I found: if I remove the `bindings.json` from my jar, then at runtime the module cannot resolve my Proxy. The module should return a list of proxies and this failes. ", "updateAuthor": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-16T07:40:50.000+0000", "updated": "2017-05-16T07:40:50.000+0000" } ], "maxResults": 67, "total": 67, "startAt": 0 } } }