javaandroidgoogle-play-consoleandroid-app-bundle.so

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.


Solution

  • 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
            }
        }
    }