Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5422] Duplicate file in Android .jar/.aar causing build failure

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2017-12-09T20:17:52.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Titanium SDK & CLI
Labelsn/a
Reportereric harms
AssigneeShak Hossain
Created2017-12-05T16:43:04.000+0000
Updated2017-12-09T20:25:59.000+0000

Description

Hello, We are having a module built for our application, and after adding the module and running the app for Android, we are receiving the following error. The files are not in the same directory, Im confused at how this can be seen as a duplicate file? Is there any way to force delete duplicates or ignore them? Thanks, Eric [ERROR] Failed to package application: [ERROR] [ERROR] /Users/x/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/res/drawable-xhdpi/common_full_open_on_phone.png: error: Duplicate file. [ERROR] /Users/x/Documents/Appcelerator_Studio_Workspace/AppceleratorRebuild/build/android/res/drawable-xhdpi-v4/common_full_open_on_phone.png: Original is here. The version qualifier may be implied.

Comments

  1. Sharif AbuDarda 2017-12-05

    Hello, Please provide a sample app for us to test the issue, also provide a guide on how to test the issue for successful regeneration. I would suggest upgrading your SDK and CLI to the latest one. Thanks.
  2. eric harms 2017-12-09

    Hi Sharif, Just for the record, if anyone comes across this issue. We "resolved" this issue by removing ti.map//platform/android/res, and removing the google play base and basement .jars from any other modules. Hopefully 7.0.0 and the new way play services is being handled will improve on this issue. Thanks Eric

JSON Source