asmdef as Package doesn’t run

So I have this very peculiar situation where I have a solution with a dll inside. It has it’s asmdef and works properly in editor and PC builds both as an imported git package and in it’s default project folder. But when I use it as a git package and build for android I get a

MethodAccessException: Attempt to access method ‘Terahard.IApiUser.get_DisplayName’ on type ‘Terahard.ApiUser’ failed

this is inside the dll

but not when I put the same files ( with asmdef ) in the project but not as a git imported package.

has anyone encountered this before?

It could be that: Note that link.xml files are not supported inside packages, but you can reference package assemblies from non-package link.xml files.

Hey there, apologies for the delay in reply.

The team have looked at the post and have suggested that we get a bug report from you.

Can I ask if you have submitted one? If you have, please provide the ID. If not, please submit one :slight_smile:

1 Like

hey @UnityMaru apologies I should have answered this post with a solution, my bad:

the solution was indeed the link.xml, I suppose that’s why I never replied here. You just need to add this in the project separately of the package, one could create an editor tool inside the package to create this said xml and then it would truly be “packaged”.

So yeah, no need for a bug report although I could really use some help here: Too many open files :smile: as it’s not very easy to recreate this bug outside of big projects. <3

1 Like