Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24363] Android: Prevent 'duplicate entry assets/README' error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-08-29T00:56:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.2, Release 6.2.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2017-02-01T15:35:30.000+0000
Updated2017-08-29T16:44:45.000+0000

Description

Prevent README from being copied into native .jar, preventing:
[ERROR] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: assets/README

Comments

  1. Gary Mathews 2017-02-01

    master: https://github.com/appcelerator/titanium_mobile/pull/8811
  2. Gary Mathews 2017-02-02

    6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8813
  3. Abir Mukherjee 2017-02-27

    NPM Version: 2.15.9 Node Version: 4.5.0 Mac OS: 10.12.1 Appc CLI: 6.1.0 Appc CLI NPM: 4.2.8 Appcelerator Studio, build: 4.8.1.201612050850 iOS Device: 10 Using above environment passed FR. After merge, the changes were seen.
  4. adam Kearsley 2017-03-22

    Not working for me. Still getting the above error:
       Operating System
        Name                        = Mac OS X
        Version                     = 10.12.3
        Architecture                = 64bit
        # CPUs                      = 8
        Memory                      = 17179869184
       
       Node.js
        Node.js Version             = 4.6.0
        npm Version                 = 2.15.9
       
       Titanium CLI
        CLI Version                 = 5.0.11
       
       Titanium SDK
        SDK Version                 = 6.1.0.v20170321140251
        SDK Path                    = /Users/adamkearsley/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.v20170321140251
        Target Platform             = android
       
  5. adam Kearsley 2017-03-22

    Sorry: Operating System Name = Mac OS X Version = 10.12.3 Architecture = 64bit # CPUs = 8 Memory = 17179869184 Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium CLI CLI Version = 5.0.11 Titanium SDK SDK Version = 6.1.0.v20170321140251 SDK Path = /Users/**********/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.v20170321140251 Target Platform = android
  6. adam Kearsley 2017-03-22

    Also tried using SDK v.6.0.3 and it won't build. I have removed all README files from the project, but it still throws error.
  7. Gary Mathews 2017-03-22

    [~adamkearsley] what modules are you using?
  8. adam Kearsley 2017-03-22

    @Gary Mathews iphone - be.k0suke.tibubble iphone - dk.napp.drawer iphone - ti.map iphone - ti.imagefactory android - com.tdtsh.tibubbleandroid android - dk.napp.drawer android - ti.map android - ti.cloudpush android - ti.imagefactory@Mention someone by typing their name...
  9. Eric Merriman 2017-03-22

    Hello [~adamkearsley] - A couple questions: 1) Are you using ti CLI or Appc CLI? (I see Ti CLI listed so assuming that) 2) Are you using studio or simply using the CLI? If just the CLI, ensure you have the SDK selected. Meaning app ti sdk select and choose either 6.0.2 or later.
  10. Eric Merriman 2017-03-22

    Sorry can't edit comments in closed tickets: if using ti CLI: ti sdk select If using Appc CLI: appc ti sdk select I asked about studio because studio uses the SDK you choose in tiapp.xml as the source of the basic commands, AND as the SDK to use in the compile. The CLI uses what's selected in the tiapp.xml for the compile, but the source of basic commands will be the selected SDK. This particular issue is fixed in the SDK, so CLI users need to ensure they set the selected SDK.
  11. Rob Trueman 2017-04-03

    Having the same issues with Studio. Modules installed: ti.cloud, ti.map, ti.imagefactory, dk.napp.drawer. SDK: 6.0.3 (also tried 6.0.2) Operating System Name = Mac OS X Version = 10.12.4 Architecture = 64bit # CPUs = 8 Memory = 16.0GB Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Appcelerator CLI Installer = 4.2.8 Core Package = 6.1.0 Titanium CLI CLI Version = 5.0.11 node-appc Version = 0.2.39
  12. Gary Mathews 2017-08-22

    Reopening to prevent this from happening with old modules that have this issue.
  13. Gary Mathews 2017-08-22

    master: https://github.com/appcelerator/titanium_mobile/pull/9338 6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9339
  14. Lokesh Choudhary 2017-08-29

    FR Passed. PR's merged.
  15. Lokesh Choudhary 2017-08-29

    Verified the fix with SDK 6.2.0.v20170828180251 & 7.0.0.v20170828180637. Closing. Studio Ver: 4.9.1.201707200100 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.9 Appc CLI: 6.2.3 Ti CLI Ver: 5.0.14 Alloy Ver: 1.9.13 Node Ver: 6.10.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 --- Android 6.0.1 ⇨ google Pixel --- Android 7.1.1

JSON Source