2

I updated my xamarin.android packages to the latest version and make the target framework is AndroidQ but now I can't build the project when used Linker properties "SDK Assemblies only"

how I can exclude monkeyCache.SqlLite from linking assemblies

enter image description here

Federico Navarrete
  • 3,069
  • 5
  • 41
  • 76
AYKHO
  • 516
  • 1
  • 7
  • 20
  • You could set the Linker to none, If you still have this issue. – Leon Oct 09 '19 at 11:36
  • Did you find how to fix it? Also, @LeonLu-MSFT, your solution might work but can make the APK significantly bigger like in my case: https://stackoverflow.com/questions/68526148/how-can-i-correctly-exclude-some-libraries-so-that-they-are-not-linked-in-xamari It's not exactly a good solution if you're not open to having considerable APKs to distribute. – Federico Navarrete Jul 27 '21 at 09:52

1 Answers1

0

You can exclude assemblies from linking

  • editing .csproj file :

<PropertyGroup><AndroidLinkSkip>MvvmCross;MvvmCross.Plugin.Messenger</AndroidLinkSkip>

  • via project properties -> Android Options enter image description here
3615
  • 3,787
  • 3
  • 20
  • 35