[TIMOB-24935] Android Themes throwing an error with 6.1.1.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2018-12-03T11:43:11.000+0000 |
Affected Version/s | Release 6.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Aminul Islam |
Assignee | Unknown |
Created | 2017-07-05T15:18:50.000+0000 |
Updated | 2018-12-03T11:43:11.000+0000 |
Description
Hi,
Android Themes throwing an error with 6.1.1.GA but working as expected 5.1.1.GA.
Steps to reproduce:
1. Create a sample test project.
2. Create a theme XML file in ./platform/android/res/values
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Titanium" parent="Theme.AppCompat">
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:textCursorDrawable">@null</item>
<item name="android:textColorHint">#708593</item>
</style>
<style name="Theme.AppCompat.Translucent">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="Theme.AppCompat.Translucent.NoTitleBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="Theme.AppCompat.Translucent.NoTitleBar.Fullscreen">
<item name="android:windowFullscreen">true</item>
</style>
</resources>
3. Build projcet with 5.1.1.GA (No Error)
4. Now bulid project with 6.1.1.GA and getting following error
[ERROR] : Failed to package application:
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:4: error: Resource entry Theme.Titanium already has bag item android:windowActionBar.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:21: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:5: error: Resource entry Theme.Titanium already has bag item android:windowNoTitle.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:22: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:10: error: Resource entry Theme.AppCompat.Translucent already has bag item android:windowBackground.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:29: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:11: error: Resource entry Theme.AppCompat.Translucent already has bag item android:colorBackgroundCacheHint.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:30: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:12: error: Resource entry Theme.AppCompat.Translucent already has bag item android:windowIsTranslucent.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:31: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:15: error: Resource entry Theme.AppCompat.Translucent.NoTitleBar already has bag item android:windowNoTitle.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:38: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:16: error: Resource entry Theme.AppCompat.Translucent.NoTitleBar already has bag item android:windowContentOverlay.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:39: Originally defined here.
[ERROR] :
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/values.xml:19: error: Resource entry Theme.AppCompat.Translucent.NoTitleBar.Fullscreen already has bag item android:windowFullscreen.
[ERROR] : /Users/Raju/Documents/Appcelerator_Studio_Workspace_2017/Android Themes/build/android/res/values/theme.xml:47: Originally defined here.
Test Environmnet:
Android 6 (HTC one m8)
Appcelerator Command-Line Interface, version 6.2.2
Operating System
Name = Mac OS X
Version = 10.11.6
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
Node.js
Node.js Version = 4.4.4
npm Version = 2.15.1
Titanium CLI
CLI Version = 5.0.14
Titanium SDK
SDK Version = 6.1.1.GA
Thanks
[~aislam] You shouldn't re-create
Theme.Titanium
as it already exists and is used by Titanium. Rename your theme to something else.