When running my application on an android device, everything works fine, but when I run it in the emulator, I get this error:
DllNotFoundException: Unable to load DLL 'AndroidHostExtension': The specified module could not be found.
In the code, I have this:
[DllImport("AndroidHostExtension")]
private static extern void unitySetEventCallbackFunction(IntPtr callbackFunction);
The DLL is in the project like this:
![inproject][1]
I have different files for every architecture:
![inspector][2]
The emulator has the following settings:
Nexus_S_API_27 CPU/ABI: Google APIs Intel Atom (x86)
API level 27
For some reason it just isn't working in the emulator. When the method "unitySetEventCallbackFunction" the error is thrown. I can't figure out why. Does anyone have some guidance? Thanks.
[1]: https://i.imgur.com/rWsHQy9.png
[2]: https://i.imgur.com/ZW64b82.png
↧