1

I am getting an error message regarding a styles.xml on my Eclipse for MAC OS X. Below is the error message:

error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.

I googled this issue and found out that I will require an SDK r11 update to solve this problem. But since the latest SDK is r12, I downloaded using my Eclipse. But I still see this problem.

I am new to Android, so I do not really know how to troubleshoot this problem. I am hoping you guys can help me. Do let me know if I need to provide more information. Thanks in advance.

Melvin Lai
  • 861
  • 3
  • 17
  • 35

2 Answers2

1

Here is a bug report where everything is explained: http://code.google.com/p/android/issues/detail?id=18659

WindowTitleBackground is a private resource and thus you cannot inherit from it, instead you should copy the parent resource.

Konsumierer
  • 1,295
  • 1
  • 15
  • 33
0

Try this: @android:style/WindowTitleBackground

You need to specify which type this @android is, so adding style should work.

WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
  • give me a moment, this is a passed down project... EDIT: this is done in an xml got style.xml, no where else has the code... – Melvin Lai Sep 22 '11 at 08:11
  • hm... looks good as I would to it the same way. sorry, no idea :/ – WarrenFaith Sep 22 '11 at 09:52