- Home /
Question by
HarryE22 · Jul 09, 2019 at 09:22 AM ·
dllnotfoundexceptionemulator
DllNotFoundException on emulator
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:
I have different files for every architecture:
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.
Comment