I'm making a pvp game using Epic Online Service SDK which works fine on PC but when I built the Android version I got this error
Debug Unity Failed to load native plugin: Unable to load library '/data/app/com.****-TsFccgLMJgjeu4UuAZT9Zg==/lib/arm/libEOSSDK.so', error 'java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found'
Error Unity DllNotFoundException: EOSSDK
Error Unity at (wrapper managed-to-native) Epic.OnlineServices.Platform.PlatformInterface.EOS_Initialize(intptr)
After searching about libc++_shared.so, I found out that this library can be included by configuring build.gradle file, so I tried adding this to both launcherTemplate.gradle and mainTemplate.gradle under defaultConfig
externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared"
cppFlags ""
}
}
but the same error appeared anyway (I couldn't find libc++_shared.so on apk either).
Anyone know how to fix this?
Unity version: 2020.2.1f1
↧