joaoventura / pybridge

Reuse Python code in native Android applications
215 stars 56 forks source link

UnsatisfiedLinkedError for libpybridge.so #38

Open Sid11 opened 3 years ago

Sid11 commented 3 years ago

Hi, I have followed all steps, I have also created the libpybridge.so inside src/main/libs using ndk-build

But still I am facing java.lang.UnsatisfiedLinkError: dlopen failed: library "libpybridge.so" not found

At System.loadLibrary("pybridge");

Any help would be appreciated

44xtc44 commented 1 year ago

Hi, I use gradle version 8. NDK 25. My solution is to add a ndk filter to android ndk. Works on Samsung A50 and virtual device manager with Android Studio Giraffe.

file: "build.gradle" android { defaultConfig { ndk { abiFilters 'armeabi-v7a' } } }

external link https://developer.android.com/ndk/guides/abis#gradle