I spent one day with this error. My problem was that Android does not get the library and always gets a DDLNotFound error. My solution was:
1.- Make sure you have the libraries for the correct architecture in the Plugins folder.
Plugins / Android / x86 and plugins / Android / armeabi -v7a if your FAT build settings (x86 and arm)
2.- Make sure Unity recognizes them as libraries. If you select them on the Project tab, you will see them as a library associated with the platform and architecture.
3.- After the build (do not close the Unity editor!), You can check Temp / StagingArea / libs if your libraries are there. If there are any, the libraries will be in the APK. As a double check, you can open the APK (change for the zip extension) and browse the libraries in the lib folder.
4.- In C #, you must remove any lib prefix in the name of your library, for example:
If your library name is "libdosomething.so", you should call it
[DllImport ("dosomething")]
I hope this work is for you :)
Greetings.
Alexis barra
source share