Android

1. Download the SDK of the corresponding version to the local;

2.Add or replace the .jar file, the file directory: app\libs

image.png

3.Add or replace the .so file, the file directory: app\src\main\jniLibs

image.png

iOS

1. Download the SDK of the corresponding version to the local;

2. As shown below, add the downloaded SDK to the app:

Snip20200224_6.png

3. The sdk path is added as follows:

Snip20200224_9.png

Snip20200224_10.png

4. Additional tips

If you use the latest version of Xcode, you may encounter an error as below possibly:

  1. In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/c++/v1/memory:687:
  2. In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/c++/v1/atomic:579:
  3. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/c++/v1/__threading_support:546:11: error: use of undeclared identifier 'nanosleep'
  4. while (nanosleep(&__ts, &__ts) == -1 && errno == EINTR);
  5. ^

Try this to solve your problem: :::warning Change “Always Search User Paths” to “No” :::