NullReferenceException when building Xamarin Android Binding Library

Vladislav 1 Reputation point
2021-10-07T14:07:06.057+00:00

I've been trying to build a Xamarin Android Binding Library having a .jar file in it.
It builds just as expected with different .jar-s I tried, however when I add jackson-databind library, I keep receiving

BINDINGSGENERATOR : error BG0000: System.NullReferenceException: Object reference not set to an instance of an object.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.Core.targets(53,5): message BG0000: error BG0000: System.NullReferenceException: Object reference not set to an instance of an object.

138519-image.png

I have tried changing between Java 8 and Java 17, changing between Android SDK version. Nothing helps.

Any ideas where to look at next?
Thank you.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,363 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.