Forum Libraries, Components, and Plugins

Error building project with Play Services Component

I added the Play Services (Gingerbread) component to my project, because I want the SupportActionBar and Google Maps in my project. However when I try to build the project I get the following error:

error MSB4115: The "exists" function only accepts a scalar value, but its argument "@(_AdditionalAndroidResourceManifests)" evaluates to "C:\ENM\Main\src\prod\Mobile\SetupCompanion\Components\googleplayservicesgingerbread-13.0\lib\android\13\content\google-play-services/libproject/google-play-services_lib\AndroidManifest.xml;C:\ENM\Main\src\prod\Mobile\SetupCompanion\Components\googleplayservicesgingerbread-13.0\lib\android\18\content\support/v7/appcompat\AndroidManifest.xml" which is not a scalar value.

I've looked in the csproj file, and there are no nodes with the name or property AdditionalAndroidResourceManifests, so it must be somewhere in the build process this is introduced to get the stuff from the two manifests in question to be merged with the resulting manifest. For some reason though it does not like it. One thing that strikes my eyes is that it mixes forward- and back-slashes, however it should not be a problem with the NTFS filesystem.

Any workarounds or solutions to this?

I am using VS2012 with Xamarin.Android 4.11.00217 (c789d807). Minimum target is set to API 10 and target is set to 19.


  • CheesebaronCheesebaron DKInsider, University mod

    Also happens in VS2013 on the same machine and also with a fresh project, with same targets and by only adding the component to it.

  • CheesebaronCheesebaron DKInsider, University mod

    Also tested in Xamarin.Studio 4.2.2, next up going to try install a previous version of Xamarin.Android...

  • CheesebaronCheesebaron DKInsider, University mod

    The issue can be replicated on another machine with latest Xamarin.Android Alpha (see first post for version). Bug report created here:

  • mikescandymikescandy ITBeta, University ✭✭

    a workaround would be much appreciated! having the same issue and now i'm stuck!

  • mikescandymikescandy ITBeta, University ✭✭
    edited January 2014

    don't know if it makes any sense, but after removing the affecting line from Xamarin.Android.Common.targets
    ->line 702: Condition="Exists ('@(_AdditionalAndroidResourceManifests)')"
    application builds.
    I'm not confortable with msbuild, so I don't know if this is going to format my machine, but so far it works on my machine.
    ignore everything, it doesn't work (as expected, really...)
    it works!

  • RadekDoulikRadekDoulik CZMember, Xamarin Team Xamurai

    Sorry for the troubles. The issue should be fixed in the next alpha release. (

  • CheesebaronCheesebaron DKInsider, University mod


  • JorritVenemaJorritVenema NLMember ✭✭

    In current (alpha) release 4.12.12 I still get this error. So not sure if it's fixed...

    The fix by @mikescandy (removing the conditional line) works, though.

  • mikescandymikescandy ITBeta, University ✭✭

    as an additional note, every now and then I have to enable conditional line, otherwise I get an error about an R$styleable element missing. enabling ->building with error->disabling usually fixes everything

Sign In or Register to comment.