locked
Getting "Found conflicts between different versions of "System.Numerics.Vectors" that could not be" RRS feed

  • Question

  • User395187 posted

    I am trying to create release build archive. I am getting this error when i set linker behaviour to "Link sdk assemblies only" or "Link all assemblies". below is error i am getting.

    Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. * But when i set *linker behaviour to "** "Don't Link" it allows me create apk.

    I am attaching screenshots for android setting.

    Also I am getting apk of size like 430mb. How can i decrease size of apk? I am already using code shrinker "r8" and dex compiler "d8" as you can see in screenshots.

    These are nudgets being used.

    Thursday, August 27, 2020 7:58 PM

All replies

  • User371688 posted

    Also I am getting apk of size like 430mb. How can i decrease size of apk?

    For this, we usually Configure the Linker to reduce the size of app.

    In Release mode, VS turns off the shared runtime and turns on linking so that the application only ships the pieces of Xamarin.Android required at runtime. The linker in Xamarin.Android uses static analysis to determine which assemblies, types, and type members are used or referenced by a Xamarin.Android application. The linker then discards all the unused assemblies, types, and members that are not used (or referenced).So this can result in a significant reduction in the package size.

    Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.

    For this question, could you please post a basic demo so that we can test on our side?

    Friday, August 28, 2020 2:05 AM
  • User395187 posted

    *For this, we usually Configure the Linker to reduce the size of app. *

    I am getting error when i set linker behaviour to "Link sdk assemblies only" or "Link all assemblies".

    Friday, August 28, 2020 7:53 AM
  • User371688 posted

    Could you please post a basic demo so that we can test on our side?

    Tuesday, September 1, 2020 6:34 AM
  • User395187 posted

    All Done. Now issues is with apk size. apk size getting 200mb. please suggest ways to improve size

    Tuesday, September 1, 2020 7:27 AM
  • User371688 posted

    Congrats, how did you solve the problem?

    Could you please share you answer so that it will help others who have similar questions? Thanks in advance. :)

    Wednesday, September 2, 2020 1:14 AM
  • User395187 posted

    it was just warning.

    Friday, September 11, 2020 10:56 AM
  • User375474 posted

    I had this warning because of Microsoft.AspNetCore.SignalR.Client v. 5.0.3. The rest of the Xamarin Forms pacakages have latest release.

    Thursday, February 25, 2021 1:20 PM
  • User400200 posted

    I have the same problem while generating the iOS archive.

    Can you please explain how you solve the issue ?

    In my case the archive is not created, the creation process is stopped without creating the archive.

    Friday, March 26, 2021 7:59 AM