Making a Plugin that wraps a .jar

We trying to make a self hosted plugin that wraps java native code (.jar)

The main issue we have is we fail on require

Documentation of plugins seems to be incomplete. we found examples for packaging for stores but not self hosted or simply just loading a plugin from local folder.

Does anyone have good examples for documentation for this ?

All jar files in a plugin would be linked to the app. Also, all jars in AndroidResources would be used too

Make a plugin. You can use Native Template App for that. After you done making a plugin, you can put output files (aars, library jars) into Android Resources and it will be used when building your app.