Why Empty Xamarin Form App use soo big cache memory on android?

NURHASYIMNURHASYIM ✭✭USMember ✭✭

Hello,

I try to create very basic Blank App Xaml (Xamarin.Forms shared) with Xamarin for Visual Studio 4.2 and deploy It to my android device.
My empty xamarin app use about 60MB of cache after I check on app settings on my phone,

I tried deploy with Release configuration, but error appears:

Error The "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Android.Widget.TextView::SetTextAppearance(System.Int32)' (defined in 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Android.Widget.TextView::SetTextAppearance(System.Int32)
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()
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, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
--- End of inner exception stack trace ---
at Java.Interop.Tools.Diagnostics.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.d__26.MoveNext() App4.Droid

Try to find solution on forum on this link : https://forums.xamarin.com/discussion/comment/65536#Comment_65536
nothing can solve the problem.

Any suggestion about this?

Thank you in advance,

Answers

  • ComConComCon ✭✭ DEMember ✭✭

    I just create a new app with (Blank App Xaml (Xamarin.Forms shared))-Template and deployed it to my phone. It needs only ~7MB.
    Measured with Android Device Monitor

  • NURHASYIMNURHASYIM ✭✭ USMember ✭✭

    Thank you for the answer,

    Following I attach the screen shoot of setting page on my phone.
    I build it with Visual studio community, Xamarin for Visual Studio 4.2

    What version of xamarin you are using?

    Thank you,

Sign In or Register to comment.