For example, the following error is reported for this project:
java.lang.UnsatisfiedLinkError: No implementation found for void org.webrtc.PeerConnectionFactory.nativeInitializeAndroidGlobals() (tried Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals and Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals__)
The reason for the error report is that the corresponding native method was not found, that is, the corresponding so file failed to load.
Solution:
1. The reference articles are as follows:
2. View the methods contained in .so as follows:
nm -D "so文件路径"
The nm command is in the following directory of ndk:
toolchains\x86-4.9\prebuilt\windows-x86_64\i686-linux-android\bin
Since ndk is in the sdk directory, the more complete directory is as follows:
Sdk\ndk\22.1.7171670\toolchains\x86-4.9\prebuilt\windows-x86_64\i686-linux-android\bin