2

I am currently trying to integrate the LinPhone SDK 'org.linphone:linphone-sdk-android:5.2.70' into my application. When I try to initiate the factory

    fun initCore() {
       val factory = Factory.instance()
       factory.setDebugMode(true, "Hello Linphone")
       core = factory.createCore(null, null, getApplication())
    }

I am getting the following error:

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~etnr80db3rwY6xyBglTUnA==/package_id-XCdnucrbTwRLEvQ0pmlAmw==/base.apk!/lib/arm64-v8a/libmediastreamer.so"

Any insight on this is highly appreciated. Please let me know if further information is required for better clarification.

Shakib Uz-Zaman
  • 581
  • 6
  • 17

1 Answers1

1

After investigating the issue, I have found out that the problem is within the Gradle dependency configuration where the required .so files are not being downloaded correctly. I have followed the following steps to resolve the issue

  1. First, I downloaded the latest SDK from this link.

  2. Copied the .aar file to the libs directory of my project.

  3. In the app-level build.gradle file included the .aar file:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    // other dependencies
}
Shakib Uz-Zaman
  • 581
  • 6
  • 17
  • This answer looks like it was generated by an AI (like ChatGPT), not by an actual human being. You should be aware that [posting AI-generated output is officially **BANNED** on Stack Overflow](https://meta.stackoverflow.com/q/421831). If this answer was indeed generated by an AI, then I strongly suggest you delete it before you get yourself into even bigger trouble: **WE TAKE PLAGIARISM SERIOUSLY HERE.** Please read: [Why posting GPT and ChatGPT generated answers is not currently allowed](https://stackoverflow.com/help/gpt-policy). – tchrist Jul 09 '23 at 13:08
  • @tchrist, I have found the solution all by myself and AI was no help for finding the issue. Yes, I used Ai to rewrite my answer so that it was more concise and arranged. If, this is against the law then I will refactor the answer to the original state. – Shakib Uz-Zaman Jul 10 '23 at 14:43