I an using an external software kit that comes with a .dll file. I have set my build target to Android and when I run my project in the Editor it works fine, but when I build and run on my Android phone I keep getting a dll not found exception.
I have been searching for days, but every post that covers this talks about .aar or .so files.
I have tried setting the plugin to All platforms and to only Android, but that made no difference. Ticked ‘Load on startup’ but that also did not help.
I have set the scripting backend to IL2CPP and tried both API Compatibility levels (.NET 2.1 and .Net Framework), that also did not help.
I changed the location of the dll from the folder of the external plugin to /Assets/Plugins/Android but again no change.
I created a link.xml file as described on this manual page Unity - Manual: Managed code stripping but also no change. But the manual page does not describe how to get the fullname of a dll, so maybe I used the wrong name. I tried the filename without the .dll extension, a camel case variant of it where I replaced underscores and capitalized the word after the underscore and I tried the name I see in the inspector, which has a capital letter at the beginning and has a space in it. Nothing worked.
In Visual Studio I see that for the dll file the properties say Build Action: None and Copy to Output Directory: Do not copy. Tried changing those to Compile and Copy Always, but still no change.
[Edit] I am using Unity 2022.3.2f1
So I hope someone can help me get this working.
Thanks!