Is it possible to add natives (.so) to my application?

I am developing an extension and I need to add the / lib / folder together with the natives (.so). I am currently using the decompiler to add (it works), but I was wondering if there is any way to package in the extension. I used @UsesNativeLibraries, but did not include the (.so) files in the .aix, until I tried to compile the apk, but I received the following error: ________Attaching native libraries. I decided to look in “/appinventor-sources/appinventor/buildserver/src/com/google/appinventor/buildserver/Compiler.java” where the native files should be, so I found the /files/ directory of the extension directory, then added the folders.

Directory /files/ of the extension:

image

When importing the extension I’m getting this error:

image

The extension ended with 14 mb. Trying to reduce the size, I replaced the natives (.so) with smaller ones and the extension changed to 3mb. The application has been successfully compiled. But the / lib / no apk directory was not created.

Apk directory:

image

How it should look:

image

Unfortunately it’s not possible to attach native libraries to an extension at this time.

4 Likes