m***@gmail.com
2017-07-05 08:37:14 UTC
Hi all,
I am trying to import the prebuilt native libraries to the Android app with
ndk support.
With editing the build.gradle file for the app module, and editing the
CMakeLists.txt file, the apk files can be built successfully.
There're two libraries in the apk file, like this:
lib
|_arm64-v8a
|___libnative-lib.so
|___libhello.so
However, when I am running this app, there will be one FATAL exception.
From the log, I got the UnsatisfiedLinkError.
I am very curious that the libraries are located in the `lib` directory of
the apk file, why does `dlopen` treat `libs/<arch>/` as the default search
path?
Thanks.
Best regards,
Minjun
I am trying to import the prebuilt native libraries to the Android app with
ndk support.
With editing the build.gradle file for the app module, and editing the
CMakeLists.txt file, the apk files can be built successfully.
There're two libraries in the apk file, like this:
lib
|_arm64-v8a
|___libnative-lib.so
|___libhello.so
However, when I am running this app, there will be one FATAL exception.
From the log, I got the UnsatisfiedLinkError.
I am very curious that the libraries are located in the `lib` directory of
the apk file, why does `dlopen` treat `libs/<arch>/` as the default search
path?
Thanks.
Best regards,
Minjun
--
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 post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/0105dc25-2c8a-4200-9d80-0278de7a0d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/0105dc25-2c8a-4200-9d80-0278de7a0d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.