This is a migrated thread and some comments may be shown as answers.

Can't compile in release

3 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 17 Dec 2015, 04:43 PM

I'm on the latest version of UI for Xamarin, 2015.3.1202, and everything works in debug.  When I change it to release and try and compile in Android, I get the following linker error:

 

Severity Code Description Project File Line Suppression State
Error  The "LinkAssemblies" task failed unexpectedly.
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Java.Interop.JavaTypeParametersAttribute::.ctor(System.String[])' (defined in 'Telerik.Xamarin.Android.Common, Version=2015.3.1202.0, Culture=neutral, PublicKeyToken=null') from 'Telerik.Xamarin.Android.Common, Version=2015.3.1202.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Java.Interop.JavaTypeParametersAttribute::.ctor(System.String[])
   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkCustomAttribute(CustomAttribute ca)
   at Mono.Linker.Steps.MarkStep.MarkCustomAttributes(ICustomAttributeProvider provider)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkField(FieldReference reference)
   at Mono.Linker.Steps.MarkStep.InitializeFields(TypeDefinition type)
   at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
   at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
   at Mono.Linker.Steps.MarkStep.Initialize()
   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   --- End of inner exception stack trace ---
   at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() BGNMobileApp.Droid   

 


 
 
 

3 Answers, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 22 Dec 2015, 07:25 AM
Hi Joe,

We are unaware of such problem with our "UI for Xamarin" suite.

Can you please try to build the examples shipped with controls (SDKBrowser solution) in release configuration and let us know if it builds successfully?
Also you can send us (if possible) a sample project which demonstrates this issue.

Thank you in advance.

Regards,
Vladislav
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Winz
Top achievements
Rank 1
answered on 02 Feb 2016, 01:40 AM

Does this problem solved? I'm having the same issue with my project.

 

Thanks

0
Joe
Top achievements
Rank 1
answered on 03 Feb 2016, 03:51 PM
Yes.  You have to upgrade to the latest OS Xamarin.  I had other problems doing that but I finally got it all sorted.
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Winz
Top achievements
Rank 1
Joe
Top achievements
Rank 1
Share this question
or