xamarin / XamarinComponents

Plugins for Xamarin
MIT License
1.99k stars 692 forks source link

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

Open WillAutioItrax opened 2 years ago

WillAutioItrax commented 2 years ago

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 commented 1 year ago

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 commented 8 months ago

Update Xamarin.Build.Download in iOS Project.

hasanoruc commented 2 months ago

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