简体   繁体   中英

Android ADT r12 for MAC

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.

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.

Try this: @android:style/WindowTitleBackground

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM