Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

JAR library (Android binding library): "generator.exe" exited with code -1073741819

MarMarIVMarMarIV Member ✭✭
edited November 2018 in Xamarin.Android

Hi everyone,
i'm trying to use Parceler library (, because another binding library is using it. I have in project abou 5 binding libraries and all of them works fine.

But with this, i have a problem when building binding library project:

1>  Unhandled exception: System.NullReferenceException:
1>     v Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.Save(JavaTypeParameters typeParameters, XmlWriter writer, String indent)
1>     v Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.SaveTypeCommon(JavaType cls, XmlWriter writer, String elementName, String abs, String ext, String extgen, String jniExt)
1>     v Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.Save(JavaApi api, XmlWriter writer)
1>     v Xamarin.Android.Tools.ApiXmlAdjuster.JavaApiXmlGeneratorExtensions.Save(JavaApi api, String xmlfile)
1>     v Xamarin.Android.Tools.ApiXmlAdjuster.Adjuster.Process(String inputXmlFile, CodeGenerationOptions opt, GenBase[] gens, String outputXmlFile, Int32 reportVerbosity)
1>     v Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options, DirectoryAssemblyResolver resolver)
1>     v Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options)
1>     v Xamarin.Android.Binder.CodeGenerator.Main(String[] args)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Bindings.targets(431,5): error MSB6006: "generator.exe" exited with code -1073741819.

Project settings:

File properties:

Have anybody solution for this? I cannot find anything about it

Thanks a lot


  • jezhjezh Member, Xamarin Team Xamurai

    Did you follow this steps?

  • zerokewl88zerokewl88 Member ✭✭

    Late reply, but ...was there anything in your Metadata.xml that could cause this issue ? I sometimes found that invalid markup will still compile / work, but then this error is caused without much more indication of where / why.

Sign In or Register to comment.