How do I handle issues when integrating the Signaling SDK and Video SDK simultaneously?
When integrating Signaling SDK version 2.2.0 and above with Video SDK version 4.3.0 and above, the following errors may appear in the IDE:
-
Android:
-
IOS:
Reason
Both Signaling SDK versions 2.2.0 and above and Video SDK versions 4.3.0 and above use the same library:
- Android SDK:
lib/x86/libaosl.so
- IOS SDK:
libs/aosl.xcframework
As a result, the IDE detects multiple files with the same path during the build process, leading to errors.
Solution
Android SDK
Depending on your integration method, follow the corresponding solution below:
-
Using CDN
- Manually delete the following files in the SDK package:
-
lib/x86/libaosl.so
-
lib/x86_64/libaosl.so
-
lib/armeabi-v7a/libaosl.so
-
lib/arm64-v8a/libaosl.so
- Rebuild the project.
-
Using Maven
- Add the
packagingOptions
node to theandroid
node in thebuild.gradle
file to specify that the first matching file is preferred during the build process:
- After the Gradle file synchronization is complete, rebuild the project.
- Add the
IOS SDK
Depending on your integration method, follow the corresponding solution below:
-
Using CDN
- Manually delete the
libs/aosl.xcframework
file in the SDK package. - Rebuild the project.
- Manually delete the
-
Using CocoaPods
- After successfully running the
pod install
command to install the SDK, manually delete theaosl.xcframework
file in the project's/Pods/AgoraRtm
path. - Rebuild the project.
- After successfully running the