Android ADT r12 for MAC

亡梦爱人 提交于 2019-12-24 06:45:03

问题


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.


回答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.




回答2:


Try this: @android:style/WindowTitleBackground

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



来源:https://stackoverflow.com/questions/7511395/android-adt-r12-for-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!