shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.23k stars 11.57k forks source link

Issues in app bundle #3066

Closed saadullah2216 closed 2 months ago

saadullah2216 commented 1 year ago

I want to create Android app bundle and its is successfully created, but when I install with bundle apks and try to connect, It always told "Cannot run program "/data/app/packageName/lib/arm64/libss-local.so" (in directory "/data/user_de/0/packageName/no_backup"): error=2, No such file or directory".

made-by-love commented 1 year ago

Add this to build.gradle.kts android section.

    // for app bundle build, package native .so libs into the bundle
    packagingOptions {
        jniLibs {
            useLegacyPackaging = true
        }
    }