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

The "LinkAssemblies" task failed unexpectedly. #31

Open
chennakrishnakasukurthi opened this issue Jul 19, 2018 · 5 comments
Open

The "LinkAssemblies" task failed unexpectedly. #31

chennakrishnakasukurthi opened this issue Jul 19, 2018 · 5 comments

Comments

@chennakrishnakasukurthi

While running in release mode, linking the assemblies am unable to run project with this nuget package.
Can you advice me the fix, for this issue. Pasting error below.

Severity Code Description Project File Line Suppression State
Error The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Void AiForms.Effects.Droid.ToFlatButtonPlatformEffect::OnElementPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)' in assembly: 'AiForms.Effects.Droid.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve Xamarin.Forms.BindableProperty Xamarin.Forms.Button::CornerRadiusProperty
at Mono.Linker.Steps.MarkStep.MarkField(FieldReference 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()System.Void AiForms.Effects.Droid.ToFlatButtonPlatformEffect::OnElementPropertyChanged
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
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() MS.Digital.BOD.Android

@muak
Copy link
Owner

muak commented Jul 20, 2018

@chennakrishnakasukurthi

Thank you for your report.

But It is not enough information to survey.
Could you give me more information such as
AiForms.Effects version, Xamarin.Forms version, Android SDK version, your linker settings and simple code in order to reproduce?

Thank you.

@chennakrishnakasukurthi
Copy link
Author

chennakrishnakasukurthi commented Jul 20, 2018

Thank you for reply and Help muak.

AiForms.Effects - using the latest stable version
Xamarin.Forms version - 2.5.1.444934

Android SDK version - using latest Oreo (8.1), even i checked by changing in lower versions as well up to API level 21.

Am attaching a command to StackLayout and its working great in debug mode , while coming to release facing the issue when "Linking is set to be SDK Assemblies only."

Below is sample code.

Thanks,
Chennakrishna

@muak
Copy link
Owner

muak commented Jul 23, 2018

@chennakrishnakasukurthi

Thank you for your additional information.

Though I tried building in the same environment, couldn't reproduce it.
My build worked it without problems.

I'm sorry I couldn't be of any help.

@chennakrishnakasukurthi
Copy link
Author

@muak

Thanks for the response and help.

@jeroen-corteville
Copy link

Hi all, I just ran into this issue, and deleting the /bin & /obj folder for the Android project worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants