• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps AIR Packaging APK With Native Libs

Greetings,

I have been all over the web trying to find a solution to this problem, I really hope someone here can help...

My team is currently trying to package a native .so library within an AIR APK. This native library is used by a native extension we've built, but the library is not the extension itself, therefore the standard process of creating an AIR APK with an extension does not include these libraries. We have to, somehow, instruct AIR to include the native libs in the packaging process.

The real headache is that for Android to link to these libraries, it appears that they must sit in the following directories (we have 2 .so files):

/lib
/armeabi
mynativelib.so
/armeabi-v7a
mynativelib.so

When using ADT we can include the /lib directory in the APK, but AIR sticks the /lib directory in the APK's /assets directory with the rest of the AIR files....but this does not work because Android does not appear to find the native libs.

Does anyone know how we can get this lib directory sitting at the root of the APK?

Thanks

Matt
 
Back
Top Bottom