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.
Answers
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.
For this question, could you please post a basic demo so that we can test on our side?
**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".
Could you please post a basic demo so that we can test on our side?
All Done. Now issues is with apk size. apk size getting 200mb. please suggest ways to improve size
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.
it was just warning.
I had this warning because of Microsoft.AspNetCore.SignalR.Client v. 5.0.3. The rest of the Xamarin Forms pacakages have latest release.
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.