rive-app / rive-android

A runtime for interactive animations on Android
https://rive.app
MIT License
332 stars 30 forks source link

java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found #315

Open GOVINDDIXIT opened 4 months ago

GOVINDDIXIT commented 4 months ago

Description

Getting following issue while initialising rive for Vivo and Oneplus devices

Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found: needed by /data/data/com.dreamplug.androidapp/app_lib/librive-android.so in namespace clns-5
       at java.lang.Runtime.load0(Runtime.java:933)
       at java.lang.System.load(System.java:1625)
       at com.getkeepsafe.relinker.SystemLibraryLoader.loadPath(SystemLibraryLoader.java:31)
       at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(ReLinkerInstance.java:206)
       at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(ReLinkerInstance.java:133)
       at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:70)
       at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:51)
       at app.rive.runtime.kotlin.core.Rive.init(Rive.kt:43)
       at app.rive.runtime.kotlin.core.Rive.init$default(Rive.kt:38)
       at com.dreamplug.fabrik.ui.main.MainActivity$onCreate$1.invokeSuspend(MainActivity.kt:246)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:5793)

Provide a Repro

Just initialising the Rive is able to repro the crash

Device & Versions (please complete the following information)

umberto-sonnino commented 2 months ago

Hi @GOVINDDIXIT, we also test against a OnePlus 7Pro on our end and everything runs smoothly over here. Which OnePlus device are you seeing this on? Are you seeing this by just running the example app in this repo?