BelledonneCommunications / linphone-android

Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)
https://linphone.org
GNU General Public License v3.0
1.12k stars 685 forks source link

Duplicate lib/arm64-v8a/libc++_shared.so #2148

Closed teravinesekiel closed 6 months ago

teravinesekiel commented 6 months ago

Hi, i'm developing an android app and there was a jni conflicts with other dependencies. appreciate any workaround for this issue

  1. Describe the bug (mandatory)

When adding linphone and other dependencies, I got this error:

`2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:

I tried adding this to build.gradle packagingOptions { pickFirst 'lib/**/libc++_shared.so' }

I got following error java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by"/data/app/~~FwWYlRwfrXc8iTXbPTf-IQ==/-r9k-oi6AQo2zz06DrL8Ffw==/base.apk!/lib/arm64-v8a/libbctoolbox.so"...

I also tried remove libc++_shared.so on linphone local aar and have the same "UnsatisfiedLinkError" like above.

  1. To Reproduce (mandatory)

Add these dependencies to app/build.gradle implementation("eu.polestar:naosdk:4.11.13.3") implementation("org.linphone:linphone-sdk-android:5.3.34")

  1. Expected behavior (mandatory)

dependencies are up and running without conflict

  1. Please complete the following information (mandatory)

    • Device: Pixel 6
    • OS: Android 14
    • Version of the SDK: 5.3.34
Viish commented 6 months ago

Duplicate of https://github.com/BelledonneCommunications/linphone-sdk/issues/368