有根的Android手机出错:消息:DllNotFoundException:sqlite3

时间:2015-10-30 07:08:54

标签: android unity3d sqlite rooted

我有一个在iOS和Android手机上运行良好的Unity应用程序,但是在root用户的nexus手机上我收到此错误。

  

设备:Nexus 4,engine_version:unity 5.2.2,越狱:true,制造商:LGE,消息:DllNotFoundException:sqlite3

由于该应用程序适用于其他Android手机,我认为问题在于手机已植根。如何解决这个问题的任何想法将不胜感激。

1 个答案:

答案 0 :(得分:1)

Do you really think that root is main cause? Have you added sqlite libraries by yourself to Unity project (Mono.Data.Sqlite.dll, sqlite3.dll, System.Data.dll)?

I also found something like this on Unity forums:

The problem is solved this way: besides Mono.Data.Sqlite.dll, sqlite3.dll and System.Data.dll it is necessary to use library libsqlite3.so. Pay attention that for ARM and x86 you need different libraries. To use the needed library version, depending on type of device (ARM or x86), it is necessary to create the folder "Android" in the folder "Plugins", folder "libs" in "Android", "armeabi-v7a" and "x86" in folder "libs", in which you shoud place the corresponding versions the libraries. Like this: enter image description here

You can download the version of the library for the x86 here and for ARM here.

Src: http://answers.unity3d.com/questions/872068/dllnotfoundexception-sqlite3.html