Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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

Open
WillAutioItrax opened this issue Jul 7, 2022 · 3 comments

Comments

@WillAutioItrax
Copy link

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.

@tombly
Copy link

tombly commented Nov 10, 2022

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!

@Phumtep
Copy link

Phumtep commented Feb 20, 2024

Update Xamarin.Build.Download in iOS Project.

@hasanoruc
Copy link

downgrade the "Xamarin.GooglePlayServices.Ads.Lite" to 122.3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants