question

PrashantChavan-1954 avatar image
0 Votes"
PrashantChavan-1954 asked RobCaplan edited

Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006:

I am getting error when I try to build my xamarin forms app, I am getting following error

Severity Code Description Project File Line Suppression State
Error Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'mmMobile.Droid.Core.ICompletionHandler' (defined in assembly 'mmMobile.Droid, Version=8.9.0.5, Culture=neutral, PublicKeyToken=null') with scope 'mmMobile.Droid.Core, Version=8.9.0.5, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve mmMobile.Droid.Core.ICompletionHandler
at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkInterfaceImplementation(InterfaceImplementation iface)
at Mono.Linker.Steps.MarkStep.MarkEntireType(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.MarkEntireAssembly(AssemblyDefinition assembly)
at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
at Mono.Linker.Steps.MarkStep.Initialize()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
--- End of inner exception stack trace ---
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
at Xamarin.Android.Tasks.AndroidTask.Execute() SunriseMobileX.Android

I am adding new reference dll mmMobile.Droid and mmMobile.Droid.Core ( its third party assembly )

Thanks
Prashant Chavan

dotnet-xamarin
· 4
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.

Hi @PrashantChavan-1954 Is there any problem before adding new reference dll mmMobile.Droid and mmMobile.Droid.Core? From your error message, it seems that the problem caused by the dll you added.

0 Votes 0 ·

Hello, There was no issue before adding this dll , it started occurring after the dll is added , but if i add this dll in to the new blank project where i dont have much of the references , i am not getting any error and i can build the project.

0 Votes 0 ·

Hi @PrashantChavan-1954 you can try to create one blank project, and Add one by one dll , to see which dll conflicts with mmMobile.Droid and mmMobile.Droid.Core.

0 Votes 0 ·
Show more comments

0 Answers