Can't compile in release

4 posts, 0 answers
  1. Joe
    Joe avatar
    11 posts
    Member since:
    Jul 2015

    Posted 17 Dec 2015 Link to this post

    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   

     


     
     
     
  2. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 22 Dec 2015 Link to this post

    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
  3. DevCraft banner
  4. Winz
    Winz avatar
    1 posts
    Member since:
    Feb 2016

    Posted 01 Feb Link to this post

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

     

    Thanks

  5. Joe
    Joe avatar
    11 posts
    Member since:
    Jul 2015

    Posted 03 Feb in reply to Winz Link to this post

    Yes.  You have to upgrade to the latest OS Xamarin.  I had other problems doing that but I finally got it all sorted.
Back to Top
DevCraft banner