Hi All, I have been trying to a use a .aar file wh...
# community-support
d
Hi All, I have been trying to a use a .aar file whose folder structure is as follows • jni ◦ x86 ▪︎ libmyapp.so ◦ x86_64 ▪︎ libmyapp.so ◦ arm64-v8a ▪︎ libmyapp.so ◦ armeabi-v7a ▪︎ libmyapp.so In my gradle cache folder , the library is present with the aar and pom file. But in the apk which is generated the mentioned .so file is not present I have provided below in my gradle but it still does not work
Copy code
android {
    packagingOptions {
        pickFirst 'jni/**/*.so'

        jniLibs {
            pickFirsts += ['lib/arm64-v8a/libmyapp.so','lib/arm64-v8a/libc++_shared.so', 'lib/x86_64/libc++_shared.so']
            useLegacyPackaging = true
        }
    }
Any help is much appreciated
v
This sounds highly Android and AGP specific. I suggest you move your question to #CJYS1DAP5 or ask in some Android community.