How do you use the annotation "UsesNativeLibraries"?

Hi, Sir
In my project, some functions need to be programmed in C/C++ language, so I need package native _lib.so(jni) into apk. I wrote code as follow:
@UsesNativeLibraries(v7aLibraries = "native-lib.so",v8aLibraries = "native-lib.so")
But the apk will crash because lack of "native-lib.so" . So how Can I package the file into apk?
Thank you.

1 Like