videokit-ai / natshare

Cross-platform social sharing for Unity Engine.
https://github.com/natmlx/videokit
Apache License 2.0
134 stars 28 forks source link

Unity: Unable to find NatShare #116

Closed 267industries closed 3 years ago

267industries commented 3 years ago

We get an error that the dll can't be found. Can you help us out?

2021-03-15 22:37:50.798 4667-4897/com.twosixsevenindustries.product E/Unity: DllNotFoundException: Unable to load DLL 'NatShare': The specified module could not be found. at NatSuite.Sharing.Internal.Bridge.CreateSharePayload (NatSuite.Sharing.Internal.Bridge+CompletionHandler completionHandler, System.IntPtr context) [0x00000] in <00000000000000000000000000000000>:0 at System.Func3[T1,T2,TResult].Invoke (T1 arg1, T2 arg2) [0x00000] in <00000000000000000000000000000000>:0 at NatSuite.Sharing.Internal.NativePayload..ctor (System.Func3[T1,T2,TResult] payloadCreator) [0x00000] in <00000000000000000000000000000000>:0 at NatSuite.Sharing.SharePayload..ctor () [0x00000] in <00000000000000000000000000000000>:0 at UnityAndroidOpenUrl._267IndustriesShare+d__1.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 at System.Array.UnsafeStore[T] (T[] array, System.Int32 index, T value) [0x00000] in <00000000000000000000000000000000>:0 at UnityAndroidOpenUrl._267IndustriesShare.SharePdf (System.String filename) [0x00000] in <00000000000000000000000000000000

olokobayusuf commented 3 years ago

Hey @267industries , it looks like you're using an outdated version of NatShare. See the README for how to grab the latest version through the Unity Package Manager. I'll be removing NatShare from the Asset Store since I've moved to distributing the package through UPM.

267industries commented 3 years ago

Thanks! I will use the version from GitHub then.