Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i am trying to build my project in Release and I am up with this issue #103

Closed
ronakshethia opened this issue Mar 25, 2019 · 6 comments
Closed
Labels
bug Something isn't working duplicate This issue or pull request already exists target-xamarin

Comments

@ronakshethia
Copy link

ronakshethia commented Mar 25, 2019

Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Boolean Plugin.InputKit.Shared.Controls.AdvancedEntry::get_IsAnnotated()' in assembly: 'Plugin.InputKit.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.String[] System.String::Split(System.Char,System.StringSplitOptions)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessEntireQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
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)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() HealthMobile.Android

could u please help me this issue how can i solve this i am using version 2.3.6.1

@enisn
Copy link
Owner

enisn commented Mar 25, 2019

I think this is almost same with #96

@enisn enisn added the duplicate This issue or pull request already exists label Mar 25, 2019
@enisn enisn added bug Something isn't working and removed duplicate This issue or pull request already exists labels Mar 25, 2019
@enisn
Copy link
Owner

enisn commented Mar 25, 2019

@ronakshethia

I've investigated that, it's not same with #96

That problem occours from AdvancedEntry's IsAnnotated property. That was using string methods to check Validation. after v3 it converted to Regex check.

If you are not able to Migrate your project to V3 you can try this solution

@enisn
Copy link
Owner

enisn commented Mar 25, 2019

I've just released a version for V2 users which is v.2.3.9

@ronakshethia Can you try that version if it works or not?

@ronakshethia
Copy link
Author

ronakshethia commented Mar 25, 2019

@enisn i got my problem solved by updating xamarin forms and then adding init to platforms but now i am facing this Issue

Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Boolean Plugin.InputKit.Shared.Controls.AutoCompleteEntry/<>c__DisplayClass6_0::b__1(System.String)' in assembly: 'Plugin.InputKit.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Boolean System.String::Contains(System.String,System.StringComparison)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessEntireQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
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)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() HealthMobile.Android

do u have any idea how can i solve this ?

here is my linking
image

@enisn
Copy link
Owner

enisn commented Mar 25, 2019

That is same with #96 now.
I'm working on it

@enisn
Copy link
Owner

enisn commented Mar 25, 2019

Now, it's duplicated issue. Just follow #96 There is a pre-release which is v3.0.4-pre1, If problem continues, add comment to #96

@enisn enisn added the duplicate This issue or pull request already exists label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists target-xamarin
Projects
None yet
Development

No branches or pull requests

2 participants