我昨天更新了我的SDK,重新启动eclipse后,所有使用谷歌服务的项目都被破坏了。他们只给我看了一个红色的"!"。
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support
\v7\appcompat\res\values-v14\styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:122: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:125: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:129: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.CloseMode'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:133: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.CloseMode'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:137: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.Overflow'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:141: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.Overflow'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:44: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:48: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:52: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:60: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:64: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:68: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:72: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:76: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
[2014-06-27 10:35:38 - BaseGameUtils] C:\Program Files\Android_ADT\sdk\extras\android\support\v7\appcompat\res\values-v14\styles_base.xml:80: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionMode.Inverse'.
这就是控制台对我说的话。我不知道这个问题是什么。我设置了一个新的工作区,链接了我的项目和BaseGameUtils全新的库,但错误无法修复。 我甚至尝试过Eclipse Juno,Luna和ADT ......似乎不可能让我的代码工作。
我真的没想到了。
答案 0 :(得分:0)
在清单中有一个目标版本13.然后在库的Android清单下使用它。
在清单文件中,
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="13" />