Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to call .so file in the another project of kotlin?

97 views
Skip to first unread message

Vishal Bansal

unread,
Dec 10, 2024, 8:11:31 AM12/10/24
to android-ndk
Hi 
1. I have created a .so file using a c++ source code. Code has a function which takes 2 integer parameters and return the sum of both.
2. It is working fine in the package where i have built the .so . 
3. But in different package when i am calling the method of that .so file then app is crashing.
Can you provide me the tutorial .

Dan Albert

unread,
Dec 11, 2024, 3:29:33 PM12/11/24
to andro...@googlegroups.com
Crashing how? Is the .so file present in the new APK? If the library is present and it's crashing because it's failing to find the method, it's probably because the mangled names of the Java methods are different because they have different group IDs. Those are all just guesses, but I can't do much more than guess without seeing some code and knowing what the crash is.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/android-ndk/ebd43dac-3d06-499f-a2dd-b6a5fbd051dcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages