Closed Bug 1093394 Opened 10 years ago Closed 10 years ago

Fix resource dependency issues again in new tablet UI (affects SDK9-only builds)

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file)

Same again. This is mhaigh's file. Throwing it at him unless I fix it first! 0:13.05 /Users/rnewman/moz/hg/fx-team/mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml:24: error: Error: No resource found that matches the given name (at 'textColor' with value '@color/new_tablet_tab_item_title'). 0:13.05 0:13.05 /Users/rnewman/moz/hg/fx-team/mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml:34: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/new_tablet_tab_item_close_button').
This makes things build for me.
Attachment #8516370 - Flags: review?(lucasr.at.mozilla)
Assignee: mhaigh → rnewman
Also, I don't even see the color defined at all. Might be a second bug hiding there. $ ag 'new_tablet_tab_item_title' mobile/ mobile/android/base/resources/layout/new_tablet_tabs_item_cell.xml 30: android:textColor="@color/new_tablet_tab_item_title"
Comment on attachment 8516370 [details] [diff] [review] Move new_tablet_tabs_item_cell.xml into a tablet resource directory. v1 Review of attachment 8516370 [details] [diff] [review]: ----------------------------------------------------------------- Yep.
Attachment #8516370 - Flags: review?(lucasr.at.mozilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
I still get this same build error when building with "MOZ_ANDROID_NEW_TABLET_UI=" unset...except for the error is now complaining about being in the file mobile/android/base/resources/layout-v11/new_tablet_tabs_item_cell.xml Is it not supported to build Firefox-36 with MOZ_ANDROID_NEW_TABLET_UI unset? It seems (in my simple test) that moving mobile/android/base/resources/layout-v11/new_tablet_tabs_item_cell.xml to mobile/android/base/newtablet/res/layout-large-v11/new_tablet_tabs_item_cell.xml fixes the issue for when MOZ_ANDROID_NEW_TABLET_UI is not set...though I don't know if that breaks the build when MOZ_ANDROID_NEW_TABLET_UI is set.
(In reply to Nathan Toone from comment #7) > Is it not supported to build Firefox-36 with MOZ_ANDROID_NEW_TABLET_UI unset? Correct: it is not supported. The flag will be removed soon.
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 36 → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: