Generate .so files?

526 Views Asked by At

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:

  1. I have created an empty project in android studio.
  2. created JNI Directory in project package.
  3. created ADD.C file in JNI Directory
  4. similarly Android.mk and Application.mk
  5. intiated NDK-build statement and generated .so libs.
  6. after running the Android app keeps stopping.

you can see my code.

Android.mk file

ADD.C file

my java Main Activity

1

There are 1 best solutions below

0
On

Try starting with https://github.com/android/ndk-samples/tree/main/hello-jni and see if you can get that to run successfully.