Skip to content Skip to sidebar Skip to footer

Android Ndk App Stops Working

I've been trying to get started on adding native code to my android app so I've looked through a plethora of Android NDK tutorials all to no avail. I can't get any of the apps to r

Solution 1:

You are missing Java_ prefix. Try renaming the function name in native.c to Java_com_example_ndksetup_NDKSetupActivity_printLog.

Hope this helps.

Solution 2:

For correct function names, there's javah:

cd bin/classes
javah com.company.MyClassWithNativeStuff com.company.Util

It generates .h files.

Post a Comment for "Android Ndk App Stops Working"