xamarin / XamarinComponents

Plugins for Xamarin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The "IsAndroid" parameter is not supported by the "XamarinDownloadArchives" task

WillAutioItrax opened this issue · comments

I recently updated several NuGets and now when I try to build in Release mode for Android I get the following error messages:

MSB4064: The "IsAndroid" parameter is not supported by the "XamarinDownloadArchives" task loaded from assembly: Xamarin.Build.Download, Version=1.0.6646.18282, Culture=neutral, PublicKeyToken=null from the path: C:\Users\<me>\.nuget\packages\xamarin.build.download\0.4.9\build\Xamarin.Build.Download.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property. MSB4063: The "XamarinDownloadArchives" task could not be initialized with its input parameters. Done building project "MyApp.Droid.csproj" -- FAILED

It looks like the issue may be in this page:
https://github.com/xamarin/XamarinComponents/blob/main/Util/Xamarin.Build.Download/source/Xamarin.Build.Download/Xamarin.Build.Download.targets

Thanks for looking at it.

I ran into this today too. I had two Android projects (app and lib) that referenced different versions of various Xamarin.GooglePlayServices.* nugets. This caused the library project to pull in Xamarin.Build.Download 0.4.9 and the app to pull in Xamarin.Build.Download 0.11.0, which caused the above error when you try to build it.

I found that deleting the 0.4.9 folder from the nuget/packages folder or adding an explicit reference to Xamarin.Build.Download 0.11.0 to the library resolved this.

Hope this helps!

Update Xamarin.Build.Download in iOS Project.