#Sharing CanSendMail throws

1 messages · Page 1 of 1 (latest)

fluid prism
#

Hi,

I'm having an odd issue with using Sharing Services. I'm already using Game and Billing OK.
Just trying to call CanSendMail fails. Essential Kit V3.4.2. Unity 6000.1.12f1

08-21 11:05:34.124 4968 4986 E Unity : [VoxelBusters.CoreLibrary.EssentialKit] UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.voxelbusters.essentialkit.sharingservices.MailComposer
...
<00000000000000000000000000000000>:0
08-21 11:05:34.124 4968 4986 E Unity : at VoxelBusters.EssentialKit.MailComposer.CanSendMail ()

Note I had to add a reference manually in my scripts.asmdef to get a build, which was a bit unexpected?

CS0012: The type 'NativeFeatureBehaviour' is defined in an assembly that is not referenced. You must add a reference to assembly 'VoxelBusters.CoreLibrary.NativePlugins, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Thanks,

weary karma
#

java.lang.ClassNotFoundException: com.voxelbusters.essentialkit.sharingservices.MailComposer
What are your stripping level settings in Player settings?

#

Note I had to add a reference manually in my scripts.asmdef to get a build, which was a bit unexpected?
If you have your own asmdef, yea, its required to refer our assembly files - This is common as your assembly needs to know about other classes which are in diff assembly.

fluid prism
#

Hi. Please review the screenshot of the stripping levels

weary karma
#

Low is fine actually. Please share an empty apk to have a look if the classes are exported or not.

fluid prism
#

I tried updating to VB 3.5.0 and that seems to have fixed it.
Perhaps because the Android Resolver did a clean? Not sure.

Anyway, thanks very much for your help!

Regards,

weary karma
#

Actually there are no changes in 3.5.0 related to sharing services.
However, I see a reason why it might have worked. There could be a possible deletion of the sharing library when you installed 3.4.x and now as you updated it might have got retained.