Sorry for not understanding you properly the first time.
Well, the nativescript CLI supports the library add
command, which you can use to get a third-party Java library added with generated metadata for access through NativeScript.
Please, check the NativeScript CLI Readme
for more information on the command usage. The External-libs articles
would help with the further utilization of the library.
Please, do not hesitate to contact us back if you encounter troubles with these.