I
I
Ilya Volkov2019-12-06 23:22:21
Android
Ilya Volkov, 2019-12-06 23:22:21

Adding prebuilt library to Android NDK project (UnsatisfiedLinkError)?

I'm trying to build GTA SA Mobile + SAMP Android + BASS (library for sound), but the app crashes after launch.
The application itself starts normally, but as soon as I connect it to third-party libraries (I tried libsqliteX.so, crash), then after the application starts, it crashes, the logs are attached below.
I build the project itself through cygwin + APK Easy Tool -> compile.
APK: https://yadi.sk/d/hAiFuNFEDpn0vA
Log: https://pastebin.com/yECu4uHf
Android.mk file https://pastebin.com/4wTHzrLb
Application.mk file https://pastebin.com/Xd25rdsW
File structure: https://pastebin.com/G7bTAg2b
SAMP Android sources if anything. (I only changed the Android.mk file and threw the BASS libraries into the vendor folder)
https://github.com/4x11/build69
I can't figure out which way to dig, why this problem occurs.
My steps:
1. Build libsamp.so via cygwin
2. Take libsamp.so and other "BASS" libraries and put them inside APK (build69v108.apk\lib\armeabi-v7a)
3. Run APK Easy Tool -> compile
4. I launch the application
I test on the phone:
1. Redmi Note 7
2. Android ver: 9 PKQ1. 180904.001
3. MIUI ver: MIUI Global 10.21 stable
4. Core ver: 4.4.153-perf+

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question