2013-08-17 113 views
0

我無法讓MapsV2/Pager工程進行編譯。 (使用5.0 pdf )無法使MapsV2/pager工作

我開始了一個新的工作區。

從現有代碼創建新的actionbarsherlock項目。 (已在其他項目中成功使用過)

從現有代碼創建新的Google-play-services_lib項目。 (已在其他項目中成功使用過)

從現有代碼創建新的MapV2Pager項目。

在MapV2Pager清單中製作並放入新的API密鑰。

添加在Android的性能這兩個庫項目,並設置構建目標到2.3.3(針對我的所有應用程序到這一點)

我乾淨的構建一切,我得到在控制檯窗口以下...

xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values\abs_styles.xml:89: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values\abs_styles.xml:88: error: Error: No resource found that matches the given name: attr 'android:showDividers'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values-v14\abs_styles.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'. [2013-08-17 16:30:14 - MapsV2Pager] D:\NewCWareWorkspace\actionbarsherlock\res\values\abs__styles.xml:101: error: Error: No resource found that matches the given name: attr 'android:textAllCaps'.

我實際上得到了更多的粘貼在上面。它抱怨actionbarsherlock庫中的樣式文件中的條目,但我現在不知道爲什麼。我對這些錯誤全面搜索了Google搜索,但找不到任何可行的東西。

控制檯錯誤可能是R.Java無法在MapsV2Pager中構建的原因,因此它不會編譯。

我會做什麼錯? 謝謝,加里

回答

0

and set build target to 2.3.3 (target all my apps to this)

這是行不通的。使用ActionBarSherlock的項目需要更高的功能,無論是對於ActionBarSherlock自己的項目還是使用它的應用程序。

ActionBarSherlock寫成with API Level 14 as a build target

MapsV2/Pager寫入with API Level 17 as a build target;這個或以後肯定會工作。它應該使用API​​等級14或更高的IIRC。

如果你願意,你的android:minSdkVersion可以是10(Android 2.3.3)。