question

PauloSilva-9357 avatar image
0 Votes"
PauloSilva-9357 asked RobCaplan edited

Problems when i changed from Android 10 to Android 11

I tried to migrate an APP to Android 11. I got some errors.
First of all, i updated Xamarin.Forms. When i updated Xamarin.Forms some package didn't work. For example, this component:

RadioButtonRenderer -> Ambiguos and i used this: AvaliacaoDeRota.Droid.Renderer.RadioButtonRenderer

When i resolved the problem above, i got other: RadioButton -> Ambiguos too. I did this: Android.Widget.RadioButton

Now i'm getting this problem and i don't get fix this problem:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Legacy.targets(5,5): Error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Void AndroidX.RecyclerView.Widget.RecyclerView/LayoutManager::n_OnInitializeAccessibilityNodeInfo_Landroidx_recyclerview_widget_RecyclerView_Recycler_Landroidx_recyclerview_widget_RecyclerView_State_Landroidx_core_view_accessibility_AccessibilityNodeInfoCompat_(System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr,System.IntPtr)' in assembly: 'Xamarin.AndroidX.RecyclerView.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve AndroidX.Core.View.Accessibiity.AccessibilityNodeInfoCompat
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType (Mono.Cecil.TypeReference reference) [0x00013] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x0002c] in <5a1df33220564ef787578ac3c7e67d03>:0
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType (Mono.Cecil.TypeReference reference) [0x00000] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00047] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x001b1] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0001b] in <5a1df33220564ef787578ac3c7e67d03>:0
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00047] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue () [0x0000a] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.Process () [0x000f6] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000d] in <5a1df33220564ef787578ac3c7e67d03>:0
at MonoDroid.Tuner.MonoDroidMarkStep.Process (Mono.Linker.LinkContext context) [0x0000b] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Pipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x0000d] in <5a1df33220564ef787578ac3c7e67d03>:0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0000f] in <5a1df33220564ef787578ac3c7e67d03>:0
at MonoDroid.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in <5a1df33220564ef787578ac3c7e67d03>:0
at MonoDroid.Tuner.Linker.Process (MonoDroid.Tuner.LinkerOptions options, Mono.Linker.ILogger logger, Mono.Linker.LinkContext& context) [0x00071] in <5a1df33220564ef787578ac3c7e67d03>:0
at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x00183] in <5a1df33220564ef787578ac3c7e67d03>:0
at Xamarin.Android.Tasks.LinkAssemblies.RunTask () [0x0001b] in <5a1df33220564ef787578ac3c7e67d03>:0
at Xamarin.Android.Tasks.AndroidTask.Execute () [0x00000] in <5a1df33220564ef787578ac3c7e67d03>:0 (XALNK7000) (AvaliacaoDeRota.Droid)

I use Visual Studio for Mac






dotnet-xamarin
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm having exactly the same error, and my CSPROJ did not have this package.

I've added the latest version but no luck, still getting the same error.

0 Votes 0 ·

Hi, sibagy. Please post the deatils about the error log. Do you install some third party nuget packages?

0 Votes 0 ·

1 Answer

JarvanZhang-MSFT avatar image
4 Votes"
JarvanZhang-MSFT answered MarceloOliveira-7452 published

Hello,​

Welcome to our Microsoft Q&A platform!

Mono.Cecil.ResolutionException: Failed to resolve AndroidX.Core.View.Accessibiity.AccessibilityNodeInfoCompat

To fix this issue, try to update the 'Xamarin.AndroidX.RecyclerView' Nuget package to the lastest stable version in the package manager on Android project. Install this package if it has not been installed before.

Best Regards,

Jarvan Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


@JarvanZhang-MSFT , ok i'll do today and then i'll answer in this post the result, if fixed or not.

Best regards,

Paulo Correa

0 Votes 0 ·

May I know whether your issue has been solved or not? If not, please share it in here. We can work together to figure it out.

0 Votes 0 ·

"To fix this issue, try to update the 'Xamarin.AndroidX.RecyclerView' Nuget package to the lastest stable version in the package manager on Android project. Install this package if it has not been installed before."

Saved my live .... kkkkk

0 Votes 0 ·