Hi developers I have question regarding generating .so files. And my app keeps stopping. Can anyone have the answer? These are the steps I had undergone so far:
- I have created an empty project in android studio.
- created JNI Directory in project package.
- created ADD.C file in JNI Directory
- similarly Android.mk and Application.mk
- intiated NDK-build statement and generated .so libs.
- after running the Android app keeps stopping.
you can see my code.
Try starting with https://github.com/android/ndk-samples/tree/main/hello-jni and see if you can get that to run successfully.