Page 1 of 2

in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyle

Posted: Wed May 13, 2020 6:23 pm
by 18286055
I am using Visual Studio 2019, v16.5.5.

When trying to build on Xamarin.Forms v4.6.0.726 and Steema.TeeChart.NET.Xamarin.Forms v4.2020.4.24, I receive the following error, when in "release" mode (debug doesn't occur):

Error Mono.Linker.MarkException: Error processing method: 'System.Void TeeChart.PCL.Droid.Resource::UpdateIdValues()' in assembly: 'TeeChart.PCL.Android.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Int32 Xamarin.Forms.Platform.Android.Resource/Style::NestedScrollBarStyle
at Mono.Linker.Steps.MarkStep.HandleUnresolvedField(FieldReference reference)
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()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
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.RunTask()
at Xamarin.Android.Tasks.AndroidTask.Execute()


NOTE:
• I am compiling using Android 10 (Android Q).
• All required support libraries are installed, to my knowledge, as it runs fine in debug mode.
• This also occurs regardless of build settings. (code linker on/off, bundle/apk, etc.)


I also tried other versions as early as 4.2020.4.3.


Also, the license file doesn't work on any version past 4.2020.4.3. see viewtopic.php?f=4&t=16890

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Wed May 13, 2020 8:05 pm
by 18286055

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 14, 2020 8:33 am
by Pep
Hello,
When trying to build on Xamarin.Forms v4.6.0.726 and Steema.TeeChart.NET.Xamarin.Forms v4.2020.4.24, I receive the following error, when in "release" mode (debug doesn't occur):
At first, I couldn't say that it's a TeeChart problem, as having doing some tests here the problem only happens by using the latest Xamarin.Forms versions.
If you try to use the Xamarin.Forms 4.5.0.530 version with the latest TeeChart for Xamarin.Forms version 4.2020.4.24 all works fine.
We need to investigate a little bit more with Xamarin just in case we need to modify something on our code in order that this problem dissapear or just they have to fix or change something at the xamarin.forms source.

About the license problem, please take a look at my answer here

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 14, 2020 2:56 pm
by 18286055
tried with Xamarin.Forms v4.5.0.725 and v4.5.0.530.

still occurs.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 14, 2020 8:40 pm
by 18286055
If I remove the "Steema.TeeChart.NET.Xamarin.Forms" package and comment out all relevant TeeChart code, it builds as expected on release.

It is an issue with your library.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 14, 2020 8:45 pm
by Pep
Ok. Thanks for the advise.
We need to investigate more as it did not happened on some versions to me.
Let us check again and back to you.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 14, 2020 9:44 pm
by 18286055
I updated my test repository and the error occurred. Please check it out.

https://github.com/Jakar510/FlickerTest
test.PNG
test.PNG (73.77 KiB) Viewed 30525 times

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Fri May 15, 2020 7:14 am
by Pep
Hi,
ok, I've just check with your test project, and I can confirm that just openning the project , change it the "Release" mode and compiling, the error appears.
But, I can also confirm that changing the Xamarin.Forms version I'm able to compile in "Release" mode and run the app.
Here you can download a screen recording I've done so you can look at the steps I've done.
We'll continue investigating, but as I told you before. I still not sure if it's related to xamarin.forms code or TeeChart code.

Thanks !

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Fri May 15, 2020 2:07 pm
by 18286055
test2.PNG
test2.PNG (359.75 KiB) Viewed 30506 times
test1.PNG
test1.PNG (330.38 KiB) Viewed 30506 times
Still does it...

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 21, 2020 3:35 pm
by 18286055
It still occurs with Xamarin.Forms v4.6.0.800 and Visual Studio 2019 v 16.6.0.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu May 21, 2020 4:03 pm
by Pep
Hello,
due that this problem seems to now happens always we're just looking at it with the Xamarin.Forms team. I'll back to you as soon as I've an answer and a solution.

Thanks and sorry for the inconvenience this could be causing.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Sun May 31, 2020 4:14 pm
by Pep
Just to inform in this post, for other customers that might be interested in the solution to this problem, that it has been fixed in the latest version published on nuget
TeeChart for Xamarin.Forms ver. 4.2020.5.28

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Thu Jun 04, 2020 2:36 pm
by 18286055
It now builds in release mode. However, The watermark still shows up. It could be a license issue. Rebuilt after delete android's bin and obj folders, and the same thing. Also verified the license is present and set to AndroidAsset.

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Fri Jun 05, 2020 4:24 pm
by Pep
Hello,
It's strange, I've just checked with a non expired licence and all is working fine here.
Could you please send me a direct message to pep@steema.com attaching the license file you're using so I can check it here ?

Re: in assembly 'TeeChart.PCL.Android.dll': Mono.Cecil.ResolutionException: Failed to resolve Style::NestedScrollBarStyl

Posted: Mon Jun 08, 2020 6:37 pm
by 18286055
Sent.