Using Android.bp, how to bundle native libraries into an Android library (AAR)

236 views
Skip to first unread message

Eunryoung Lim

unread,
Jul 24, 2023, 6:40:13 PM7/24/23
to Android Building
Hello,

I am working on AAOS custom image and looking for a solution on how to bundle native libraries into an Android library (AAR).
The libraries are the result of the soong build system and need to be included in the Android AAR file (android_library). When building an Android library with Android Studio, it is straightforward to accomplish this by adding all shared native libraries under jniLibs.

For Android.bp, I have come across android_library_import, java_genrule, soong_zip, make_slim_aar, and so on. But, none of them is working.

Are there any examples or solutions? Any comments would be appreciated.

Best Regards,

Reply all
Reply to author
Forward
0 new messages