Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24734] Android: Duplicate resources with .aar and Hyperloop enabled

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-05-26T21:18:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2017-05-24T23:11:43.000+0000
Updated2018-08-06T17:49:15.000+0000

Description

*Steps to reproduce the behavior*

Run the hyperloop-examples project with the 6.1.0 RC release

*Actual behavior* The build fails with the following error while executing the aapt command:
[ERROR] Failed to package application:
[ERROR]   
[ERROR] /Users/jvennemann/Development/appc/hyperloop-examples/build/android/res/values/values.xml:117: error: Attribute "layout_scrollFlags" already defined with incompatible format.
[ERROR] /Users/jvennemann/Development/appc/hyperloop-examples/build/hyperloop/android/design-23.1.1/res/values/values.xml:15: Original attribute defined here.
...
*Expected behavior* The build is successful and the app runs without crashing. *Additional notes* Hyperloop still has its own AAR handling which leads to those duplicate resources. This can be solved in a similar manner as the dexer issue in TIMOB-24446 by hooking into build.android.aapt and removing the changes Hyperloop made.

Comments

  1. Jan Vennemann 2017-05-25

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9086 PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9087
  2. Lokesh Choudhary 2017-05-25

    FR done for backport PR.
  3. Lokesh Choudhary 2017-05-26

    FR passed for backport PR after new corrections.
  4. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source