You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BINDINGSGENERATOR : error BG0000: System.NullReferenceException: Object reference not set to an instance of an object.
at generator.SourceWriters.ExplicitInterfaceInvokerMethod..ctor(GenBase iface, Method method, CodeGenerationOptions opt) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/SourceWriters/ExplicitInterfaceInvokerMethod.cs:line 26
at generator.SourceWriters.ClassInvokerClass.AddMethodInvokers(ClassGen klass, IEnumerable`1 methods, HashSet`1 members, InterfaceGen gen, CodeGenerationOptions opt) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/SourceWriters/ClassInvokerClass.cs:line 117
at generator.SourceWriters.ClassInvokerClass.AddMemberInvokers(ClassGen klass, CodeGenerationOptions opt, HashSet`1 members) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/SourceWriters/ClassInvokerClass.cs:line 73
at generator.SourceWriters.ClassInvokerClass..ctor(ClassGen klass, CodeGenerationOptions opt) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/SourceWriters/ClassInvokerClass.cs:line 67
at generator.SourceWriters.BoundClass..ctor(ClassGen klass, CodeGenerationOptions opt, CodeGeneratorContext context, GenerationInfo generationInfo) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/SourceWriters/BoundClass.cs:line 88
at MonoDroid.Generation.JavaInteropCodeGenerator.WriteType(GenBase gen, String indent, GenerationInfo gen_info) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/Java.Interop.Tools.Generator.CodeGeneration/JavaInteropCodeGenerator.cs:line 43
at MonoDroid.Generation.ClassGen.Generate(CodeGenerationOptions opt, GenerationInfo gen_info) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/Java.Interop.Tools.Generator.ObjectModel/ClassGen.cs:line 155
at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options, DirectoryAssemblyResolver resolver) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/CodeGenerator.cs:line 257
at Xamarin.Android.Binder.CodeGenerator.Run(CodeGeneratorOptions options) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/CodeGenerator.cs:line 50
at Xamarin.Android.Binder.CodeGenerator.Main(String[] args) in /Users/runner/work/1/s/xamarin-android/external/Java.Interop/tools/generator/CodeGenerator.cs:line 33
The text was updated successfully, but these errors were encountered:
It looks like there is an issue with binding a few methods. I am still investigating why this happens, but it can be worked around by not binding the offending classes if they aren't needed, using the following Metadata xml:
jpobst
added
bug
Component does not function as intended
generator
Issues binding a Java library (generator, class-parse, etc.)
labels
Oct 26, 2023
jpobst
changed the title
BINDINGSGENERATOR: Error BG0000: System.NullReferenceException: Object reference not set to an instance of an object. (BG0000)
[generator] NRE in ExplicitInterfaceInvokerMethodOct 26, 2023
jpobst
changed the title
[generator] NRE in ExplicitInterfaceInvokerMethod
[generator] NRE in ExplicitInterfaceInvokerMethod constructor
Oct 26, 2023
jpobst
changed the title
[generator] NRE in ExplicitInterfaceInvokerMethod constructor
NRE in ExplicitInterfaceInvokerMethod constructor
Oct 26, 2023
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
VSMac 17.6.3 (build 421)
Description
Trying to bind the following aar file, but I am stuck with the following error when I build
sense-sdk-android-lib-3.28.0.zip
I also tried to add all dependencies as AndroidLibrary with Bind=false, but it does not fix the issue.
Steps to Reproduce
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: