Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing .so file lib when building in App Bundle

I'm trying to release an app on the Playstore that includes .so lib files. When I try to debug it, the app works fine. But when I try to release it and upload it on the PlayStore via .aab and install it, my app can't find the .so file that I put in the Jnilibs folder. It says

.so file Not Found

I tried many solutions (ndk, abifilters, split, etc.) but nothing worked. I'm using Android Studio arctic fox 2020.3.1 version.

like image 758
unboundExDev Avatar asked Oct 19 '25 12:10

unboundExDev


1 Answers

The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated. The current default is 'true'. It will be removed in version 8.0 of the Android Gradle plugin. You can add the following to your build.gradle instead:

android {
    packagingOptions {
        jniLibs {
            useLegacyPackaging = true
        }
    }
}
like image 195
Blue Ocean Avatar answered Oct 21 '25 02:10

Blue Ocean



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!