[TIMOB-24363] Android: Prevent 'duplicate entry assets/README' error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-29T00:56:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.2, Release 6.2.0 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2017-02-01T15:35:30.000+0000 |
Updated | 2017-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
master: https://github.com/appcelerator/titanium_mobile/pull/8811
6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8813
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.
Not working for me. Still getting the above error:
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
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.
[~adamkearsley] what modules are you using?
@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...
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.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.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
Reopening to prevent this from happening with old modules that have this issue.
master: https://github.com/appcelerator/titanium_mobile/pull/9338 6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9339
FR Passed. PR's merged.
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