xamarin / XamarinComponents

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

Getting build error with Xamarin.Build.Download 0.10.0 #1063

Open ruhanijeb opened 3 years ago

ruhanijeb commented 3 years ago

I am migrating to AndroidX and downloaded the latest version 0.10.0 but in android i am not able to build the project . Its giving me this error . Error MSB4064: The "AndroidFixManifests" parameter is not supported by the "XamarinDownloadArchives" task. Verify the parameter exists on the task, and it is a settable public instance property. Error MSB4063: The "XamarinDownloadArchives" task could not be initialized with its input parameters.

Please let me know if anybody is facing this issue . If there is any solution i am thinking its an issue in latest version.

Yuliya-Fedorenko commented 3 years ago

I'm having the same issue with Xamarin.Build.Download 0.10.0 Severity Code Description Project File Line Suppression State Error The "AndroidFixManifests" parameter is not supported by the "XamarinDownloadArchives" task. Verify the parameter exists on the task, and it is a settable public instance property.

ondrejnovotny commented 3 years ago

Having the same issue

cristiandaulisio commented 3 years ago

me too

mofdaddy commented 3 years ago

One developers in our team have this issue as well. The difference is that he is the only developer on this project who is on Windows, the rest is on macOS. None of the developers on mac have this issue. Any clues?

SolitudeEntertainment commented 2 years ago

Anyone solve this? im getting it as well...

brightraudona commented 2 years ago

Me too, and it seams to come out of nowhere.

inforithmics commented 2 years ago

I have the same Problem with Visual Studio 2022. Strangely when I use Jetbrains Rider for deploying it works.

inforithmics commented 2 years ago

Probably caused by this https://github.com/xamarin/XamarinComponents/pull/1368 Because here the AndroidFixManifests was removed.

Workaround: referencing a previous Version:

Adding following to the Android Project solves this (uses Xamarin.Build.Download Version that has still this Attribute)

<PackageReference Include="Xamarin.Build.Download">
      <Version>0.11.1</Version>
</PackageReference>
AlexanderVanMeerten commented 1 year ago

I get this error while building the iOS project. Very strange.

ewerspej commented 1 year ago

I get this error while building the iOS project. Very strange.

Same here, only started recently.

This only occurs when I build with macOS, on Windows everything builds fine. I've just disabled the Android build for Release builds of my Xamarin app for iOS in order to be able to publish iOS builds.

XDarinor commented 1 year ago

I get this error while building the iOS project. Very strange.

Me too. Got the error building for iOS.

AlexanderVanMeerten commented 1 year ago

It is very annoying. Switching between Debug|Phone and Debug|Simulator sometimes fixes it. Or closing re-opening VS. But suddenly this error is back again. I think it started when I installed the pre-release for 17.4 (which I now delete) and am using stable version 17.4. And why does AndroidFixManifests have anything to do with iOS? Building for Android is working without problem.

kunalprakash3891 commented 1 year ago

Having the same. Quite frustrating, seems to happen completely at random.

johnrah commented 1 year ago

I had this error due to Xamarin.Build.Download missing from NuGet.

kunalprakash3891 commented 1 year ago

Thank you @johnrah, you're a legend! Installing the Xamarin.Build.Download package fixed it for me.

faceoffers28 commented 1 year ago

Just encountered this issue when upgrading my .Net Maui Android app to .Net 7.0. @johnrah suggestion fixed the problem.

AlexanderVanMeerten commented 1 year ago

@johnrah suggestion fixed the problem. Thanks a million!

seanstilson commented 1 year ago

Me as well, thanks much, excellent solution!

eyeveye commented 1 year ago

Fixed by opening Tools->Nuget Package Manager->Manage NuGet Packages for Solution... On the Browse tab, search for Xamarin.Build.Download Ensure it is installed for all of the projects and that they are the same version (0.11.4) Then Clean Solution followed by Rebuild Solution.

This solution work for Maui net6.0 project. @johnrah Thanks.

glintpursuit commented 1 year ago

Thanks @johnrah

MarkMcCormackSF commented 1 year ago

Hey thanks @johnrah, I was getting this out of the blue on a Maui net6.0 project. It was strange, as I was trying to build for iOS at the time.

Halepopoulos commented 1 year ago

nice one. Worked for me too, this nuget package.

sandipagrawal100 commented 1 year ago

@johnrah 's suggestion to add package Xamarin.Build.Download fixed for me 👍

derekvantonder commented 1 year ago

Thanks @johnrah that helped me

ameralfaqeeh commented 1 year ago

I had this error due to Xamarin.Build.Download missing from NuGet.

  • Fixed by opening Tools->Nuget Package Manager->Manage NuGet Packages for Solution...
  • On the Browse tab, search for Xamarin.Build.Download
  • Ensure it is installed for all of the projects and that they are the same version (0.11.4)
  • Then Clean Solution followed by Rebuild Solution.

Thanks, it works now.

thomasgalliker commented 1 year ago

@johnrah what is Xamarin.Build.Download and why can I build my .NET MAUI app once and it fails 2mins later - without any code change? Just curious...

johnrah commented 1 year ago

@johnrah what is Xamarin.Build.Download and why can I build my .NET MAUI app once and it fails 2mins later - without any code change? Just curious...

Xamarin.Build.Download provides support for downloading and unpacking archives when building MSBuild projects https://www.nuget.org/packages/Xamarin.Build.Download/

As for the reliability of .NET MAUI, it is very fickle. It's getting better with every update, though.

Manish-Pradhan-FP commented 10 months ago

OMG this saved my day big time. Thank you!!

wolfgangschneider commented 9 months ago

Thanks This saved may day, today not the last two ones. solving some cryptical build and deployment (IOS) errors ends up with a new one and so on. Spend the last two days without writing one line of code. Its frustrating. I was a great fan of xamarin forms . But now as a SW Architect I cannot suggest using Maui for real live projects. @johnrah dotnet Maui is still very fickle.

jeff-eats-pubsubs commented 3 months ago

Thanks @johnrah! This stopped the sporadic build issues

glintpursuit commented 3 months ago

I have move on to Flutter from last 1 year. Didn't got any issues around packages, builds. very very fast for development.

datvm commented 2 months ago

I am still having this issue and like others said strangely only happen to iOS builds (Windows, Android and Mac Catalyst build without any issue). Adding the package even only for iOS (with Condition attribute) fixes it.

This happens when building on a Windows with or without Pair to Mac.

datvm commented 1 month ago

I don't know when or what happened but after a recent update, Xamarin.Build.Download is probably added back to the default iOS build. I now receive a duplicate package error until I remove it and I can build iOS apps normally without that package.