[TIMOB-24734] Android: Duplicate resources with .aar and Hyperloop enabled
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-26T21:18:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2017-05-24T23:11:43.000+0000 |
Updated | 2018-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.
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9086 PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9087
FR done for backport PR.
FR passed for backport PR after new corrections.
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.