android: Static Binding Generator throws NullPointerException

Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Yes, I couldn’t find anything.

Tell us about the problem

Static Binding Generator throws NullPointerException at :asbg:generateBindings.

Please provide the following version numbers that your issue occurs with:

tns --version 3.0.1

Did the error happen while the app was being constructed? (buildtime error)

:asbg:generateBindings
Exception in thread "main" java.lang.NullPointerException
        at org.nativescript.staticbindinggenerator.Generator.collectInterfaceMethods(Generator.java:673)
        at org.nativescript.staticbindinggenerator.Generator.getPublicApi(Generator.java:212)
        at org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:336)
        at org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:108)
        at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:148)
        at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:68)
        at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:50)
        at org.nativescript.staticbindinggenerator.Main.main(Main.java:15)
:asbg:generateBindings FAILED

Please tell us how to recreate the issue in as much detail as possible.

This happens for my system every time I try to run “tns run android”, but I have no idea what is causing it. This happens for all projects, even the Hello World template.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments

@Pip3r4o I found the cloud build in NativeScript Sidekick does work for me so I’ll test that way for now.