Issue Description
When compiling an Titanium Hyperloop project for Android, I am getting the following error:
[ERROR] /test/hyperloop-test3/build/android/res/values/values.xml:220: error: Resource entry app_name is already defined.
[ERROR] /test/hyperloop-test3/build/android/res/values/strings.xml:3: Originally defined here.
It seems that Hyperloop is generating a values.xml file for the library: venuekit.aar which defines an app_name property.
Is there a way to use the library as Titanium already defines app_name property in strings.xml based on the value from Tiapp.xml?
Steps to reproduce
Run
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9162 PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9163
Passed FR Node Version: 6.10.3 NPM Version: 3.10.10 Mac OS: 10.12.4 Appc CLI: 6.2.2 Appc CLI NPM: 4.2.9 Titanium SDK version: 6.1.1.v20170620083951 Appcelerator Studio, build: 4.9.0.201705302345 Xcode 8.3.2 Hyperloop 2.1.1 Android 7.1 Device I built with SDK 6.1.0 and reproduced the original bug. Then I built with PR/9163 and found that the errors are no longer there, and the app build to device also worked as expected.
Confirmed that changes are seen in these SDK builds: 6.1.1.v20170620103414 6.2.0.v20170620104530
Thanks for your report [~mcarney], there indeed still was an issue with modules that we didn't catch because the ticket was originally only reported for Hyperloop. [~cwilliams] or [~gmathews], can you take a look at this so maybe we can get this into 6.2.0? Thanks! PR (master): https://github.com/appcelerator/titanium_mobile/pull/9373 PR (6_2_X): https://github.com/appcelerator/titanium_mobile/pull/9374
The native project-component of this fix is included in 6.2.0 (release next week, RC this week). Thanks everyone!
Latest PR is causing a regular expression issue, and apps cannot build on Windows-Android. I cannot build to either device or emulator.
This is the environment: Node Version: 6.10.1 NPM Version: 3.10.10 Windows OS: 10.0.14393 Appc CLI: 6.2.4-master.9 Appc CLI NPM: 4.2.9 Titanium SDK version: 6.2.0.v20170830125819 Appcelerator Studio, build: 4.9.1.201707200100 Android OS 7.1.2 [~lchoudhary] has identified the commit that caused this regression. https://github.com/appcelerator/titanium_mobile/blob/f47d32761193f51fe4bc56f8bb811ee7a466f38c/android/cli/lib/base-builder.js#L76
Fixes for the Windows regression with unescaped path separators: PR (master): https://github.com/appcelerator/titanium_mobile/pull/9381 PR (6_2_X): https://github.com/appcelerator/titanium_mobile/pull/9382
Closing ticket. Fix is validated with SDK 6.2.0.v20170831045700; same environment as listed previously.