Bug 16879 - Google Play Services (Gingerbread) doesn't compile when target is set to 2.3
Summary: Google Play Services (Gingerbread) doesn't compile when target is set to 2.3
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.10.1
Hardware: Macintosh Mac OS
: Low enhancement
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-12-18 11:10 UTC by Jakub Arnold
Modified: 2017-06-28 19:16 UTC (History)
5 users (show)

Tags: bb
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Jakub Arnold 2013-12-18 11:10:07 UTC
Steps to reproduce:

1. create a new Android Application
2. add the new "Google Play Services (Gingerbread) 13.0" component as mentioned in the latest blog post http://blog.xamarin.com/improvements-to-the-google-play-services-component/
3. right click the project -> Options -> Android Application -> change Target Android Version and Minimum Android Version to 2.3 (API level 10)
4. build the proejct
5. the build fails with the following error

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 1. Output: /Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/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'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:104: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:108: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:112: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:116: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:88: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:92: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:96: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:100: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/styles_base.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar.Horizontal'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/styles_base.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:159: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Spinner'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:161: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.Spinner'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:153: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.DropDownItem.Spinner'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:156: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.DropDownItem.Spinner'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:147: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:150: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:167: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.PopupMenu'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:170: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.PopupMenu'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:174: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:178: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:182: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:186: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:192: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:196: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:204: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:208: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.AutoCompleteTextView'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.AutoCompleteTextView'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:217: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/styles_base.xml:216: error: Error: No resource found that matches the given name: attr 'android:showDividers'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/themes_base.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/themes_base.xml:42: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v11/themes_base.xml:44: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:41: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:67: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
/Users/darth/projects/GingerIssue/Components/googleplayservicesgingerbread-13.0/lib/android/18/content/support/v7/appcompat/res/values-v14/themes_base.xml:94: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.



I've tried this on different projects but it always fails with the same error. The same problem also occurs in the sample applications for the component.
Comment 1 Jonathan Pryor 2013-12-20 16:23:33 UTC
Based on the path name:

> support/v7/appcompat/res/values-v14/styles_base.xml

I'm going to assume that the //uses-library/@android:targetSdkVersion attribute needs to be 14 or higher in order for this to compile. You should be able to set this within the IDE by setting the Target Android version or something.

That's arguably a workaround.

So the question is, what _should_ happen?

We could plausibly add a property to Android.IncludeAndroidResourcesFromAttribute to say "minimum required target API level", and use to bound the generated //uses-sdk/@android:targetSdkVersion value.

We could enhance Component/IDE experience to do this.

Then we'd have to figure out what happens in the event of conflicts -- presumably "highest wins", but that needs testing.

I don't foresee any of the above happening anytime soon.
Comment 2 Jakub Arnold 2013-12-20 17:31:07 UTC
Pardon my ignorance but if the library is for Gingerbread, which is API level 10, why do I need 14+ to compile it? Am I missing something?
Comment 3 Jonathan Pryor 2013-12-20 23:17:19 UTC
> Am I missing something?

The library references API-14 Android resources so that if it's running on API-14+ they will be used. If it's not on an API-14 target, the library will detect that and fallback appropriately.

However, in order for the resources to use API-14 resources, the //uses-sdk/@android:targetSdkVersion attribute needs to be 14 or higher.
Comment 9 Jon Goldberger [MSFT] 2014-01-07 19:48:13 UTC
Too big to add as an attachment:
https://www.dropbox.com/s/zicx2ek9odj2a3j/CharityLogic.zip

This is the original test project with the GooglePlayServices (froyo) ver. 10 removed and replaced with GooglePlayServices (froyo) ver. 12 and then removing reference to Mono.Android.Support.v4 as Xamarin.Andriod.Support.V4 was added with the GPS (froyo) ver. 12.

The project builds and loads now, but there is an Inflate exception when trying to set the content view with:
SetContentView(Resource.Layout.MainSearchResults); // Line 64
in
MainSearchResults.cs

The solution as is works on the customers laptop which is running VS 2013 and Xamarin.Android ver. 4.8.01013

but fails with the resource not found error on his desktop running VS 2013 and
XA ver.  4.10.01073.

I tested with a scenario similar to his desktop and got that error. I am on XA ver. 4.10.02010 and VS 2013
Comment 13 Jonathan Pryor 2014-01-08 21:44:45 UTC
@Goldberger: I believe that the build issues you're seeing are fixed in the Froyo component v12.0.1 (note .1). Please update the component and try again.
Comment 14 Tom Opgenorth 2017-06-28 19:16:25 UTC
Google Play Services (Froyo) is no longer supported or under active development.