- Home /
Dynamic linking for Android DllNotFoundException
My question relates to a Unity project targeted for Android that uses a reference to an external method.
In my script file i'm importing an external function using DllImport for example:
[DllImport("bar")]
private static extern void foo();
bar in a bridging component built with adk stored inside Assets\\Plugins\\Android\\libbar.so that inturn references a bar.jar file (also in the same folder).
When running this project from my device (build & run) all is fine however using the Unity player I receive a DllNotFoundException when a call foo() is made. If I switch output from Android to a PC/Linux Standalone output the project works fine with the Unity player.
I've tried putting my libbar.so and bar.jar inside Unity's Editor folder however this didn't change things.
Using Unity 4.3.4 and I can replicate this behaviour from both a PC & Mac.
Your answer
Follow this Question
Related Questions
AI enemy script (same as in Hitman) 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to make an actor spawn at a fixed position 1 Answer
Need Help - Last Problem Converting PC to Android - Using JS to read CS 2 Answers
About Unity4.0 Creat Eclipse Project 0 Answers