Bug 29686 - Build error when using compatibility library from an Android class library
Summary: Build error when using compatibility library from an Android class library
Status: RESOLVED DUPLICATE of bug 29568
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 5.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2015-05-03 16:27 UTC by Greg Shackles
Modified: 2015-05-05 04:34 UTC (History)
3 users (show)

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

Sample project (65.33 KB, application/zip)
2015-05-03 16:27 UTC, Greg Shackles

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:

Description Greg Shackles 2015-05-03 16:27:18 UTC
Created attachment 11038 [details]
Sample project

I have an Android library project that references the v4 compatibility library via NuGet. Trying to reference an AppCompat theme in my styles.xml file like this:

<?xml version="1.0" encoding="utf-8"?>
  <style name="MyTheme" parent="Theme.AppCompat.Light">

results in this build error:

Error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

I started hitting this problem after upgrading to Rolling back to makes the issue go away. I've attached a small sample app demonstrating the error.
Comment 1 Parmendra Kumar 2015-05-04 06:37:12 UTC
I have checked this issue with attached sample and I am getting same build error mentioned in the bug description.

Screencast: http://www.screencast.com/t/lZfC3YHmf7P

ErrorLog: https://gist.github.com/Parmendrak/bf792db66a08ae523671
BuildOutput: https://gist.github.com/Parmendrak/02522eafa2d9bee06916
IDELog: https://gist.github.com/Parmendrak/9778db68c28fe23d4f2e

Environment info:

=== Xamarin Studio ===

Version 5.9 (build 457)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
	Mono 4.0.1 ((detached/5a0b19f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010024

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: d153c60
Branch: master
Build date: 2015-05-01 11:26:36-0400

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 509000457
Git revision: c27961c1dcfe2f8b5e5bb525c5dff33ce18a873c
Build date: 2015-04-30 19:35:14-04
Xamarin addins: df9b5918c9f7aca6da509fe3e5a62553aa101910

=== Operating System ===

Mac OS X 10.9.4
Darwin ShrutiMac.local 13.3.0 Darwin Kernel Version 13.3.0
    Tue Jun  3 21:27:35 PDT 2014
    root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64
Comment 3 dean.ellis 2015-05-05 04:34:38 UTC
This is definitely a duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=29568

We are trying to get that into the net release cycle I believe.
Comment 4 dean.ellis 2015-05-05 04:34:49 UTC

*** This bug has been marked as a duplicate of bug 29568 ***