Self hosted Plugins: Including 3rd-party-libraries in Plugin

Hello,

I recently built a plugin which uses 3rd-party-libraries (e.g. from Firebase) using Corona Native Build with Android Studio. That was no problem and the plugin worked as expected.

Now I want to use that plugin as a self hosted plugin in simulator builds. The building process in Corona Simulator is working for me, I tested with a basic plugin without other dependencies.

However, I’m not able to get my real plugin working, I guess because of the dependencies from 3rd-party-libraries (error message on the device is “java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/analytics/FirebaseAnalytics”).

I tried to pack those library files as .jar-files into the .tgz archive, which did not help.

How can I use 3rd-party-libraries, which are not part of the shared libraries, in a self hosted plugin?

Best regards!