Why i getting this error? (Mono.Linker.MarkException)
Xamarin
C#
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points • Microsoft Vendor
2022-12-02T01:37:13.987+00:00 Could you please provide more detailed information about how to reproduce this issue, is this issue in debug or release mode, did you import a third-party package in your project, what is your version of Xamarin and Android API level?
-
Buzzdown 46 Reputation points
2022-12-02T09:10:36.157+00:00 The Xamarin forms version is the least 5.0.0.2515 , in debug mode, tha packages that i use are : Xamarin.Android.Support.v4 , Xamarin.AndroidX.******* and my Android API level is 31 , when i rebuilding my app, it shows this error
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points • Microsoft Vendor
2022-12-05T01:38:58.723+00:00 It could be due to the incompatibility of some components of
Android.Support.v4
andAndroidX
. In fact,AndroidX
was born to replaceAndorid.Support
, see the following:AndroidX (also called Jetpack) is a major improvement to the original Android Support Library. AndroidX packages fully replace the Android Support Library by providing feature parity and new libraries.
With the release of AndroidX, Android Support is now considered deprecated and will no longer receive new feature updates. Version 28.0.0 is the last release of the Android Support Library.
Will this issue happen if you only use
AndroidX
NuGet Packages? -
Buzzdown 46 Reputation points
2022-12-05T09:50:14.24+00:00 it is still happening, i had solved it by downranging the vesion of Xamari Forms to 5.0.0.1874, updating the packages of AndroidX , and removing all the Android.Support packages but it shows up again and i cannot figure out what to do
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points • Microsoft Vendor
2022-12-06T08:54:33.503+00:00 For further investigation, could you please provide more detailed about the following information?
- How to reproduce this issue?
- Does it happen on a specific device or emulator?
- If you have not any idea about how to reproduce this problem, could you provide a minimized sample?
Your prompt reply will be highly appreciated.
-
Buzzdown 46 Reputation points
2022-12-07T09:07:17.947+00:00 I cant provide a minimised sample because it is for company.
I cannot understand how it works, why it throws a Mono.Linker.Exception and
dont know what Android.Text.ISpanned is. Maybe there is problem in newerest Xamarin.Forms package? but i have already downranged the version of Xamarin.Forms
and tried but no solution. I dont know what to do and i am struggling with the same issue for almost five days. Please if you find something please inform me. Thank you very much for your effort to keep alive this community!! -
Buzzdown 46 Reputation points
2022-12-07T09:12:17.523+00:00 I have recently resolved some issues same as the above but for SQLitePCLRaw., and the solution that i found was to update the SQLitePCLRaw. packages. This is the way to solve this issues through experimentation by updating or downranging the packages or my approach to solve these issues is completely wrong?
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,021 Reputation points • Microsoft Vendor
2022-12-08T02:02:04.357+00:00 Since your question involves private information, it should be better to create a support ticket. You could get one-to-one support here: Support for business.
Sign in to comment