Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by Bonobo · Apr 01, 2014 at 02:13 PM · androiddatabasesqlitedllnotfoundexception

Sqlite3.dll not found on specific Android devices

When trying to read a sqlite database on Android devices we received the following error:

Unable to find sqlite3.dll

DllNotFoundException: sqlite3.dll We researched the problem and found a solution here:
http://forum.unity3d.com/threads/97043-Sqlite-for-Android-help-please?p=686204#13

The solution involves putting a file called libsqlite3.so in Plugins/Android/

This fixed the problem on some Android devices but not others. Specifically, we are now able to read the database on a Nexus 7, but not on a Kindle Fire HD.

The error message when running on Kindle Fire HD is the same (dll not found) as before.

Has anyone else had a similar problem where sqlite3.dll can be found only on specific Android devices?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DaveLCR · Jun 24, 2014 at 10:23 AM 0
Share

Hey,

Did you ever find a solution to this? Currently having the same problem between Nexus 5/Galaxy Tab and it's driving me utterly mad!!!

Dave.

avatar image submiting · Dec 07, 2014 at 06:37 PM 0
Share

Hi, any updates? I have the same problem wit Galaxy Tab 3(

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by $$anonymous$$ · Mar 30, 2016 at 08:23 AM

Hi; all you have to do is download "C source code as an amalgamation" from http://sqlite.org/download.html.

Easiest way to compile is Visual Studio Community Edition (2015). Download it. Install cross platform extension too. It will download Android NDK tools, etc. In Visual Studio create a shared android dynamic library project and add "sqlite.c", "sqlite.h", "sqlite3ext.h" to project (leaving client code out.).

From project settings disable pre-headers. Set optimization for size. And compile for x86 and arm.

You will have to so files; place them under:

  • /Assets/Plugins/Android/libs/armeabi-v7a

  • /Assets/Plugins/Android/libs/x86

It is best to compile yourself to be sure code does not have extra modification. However; I am adding files I have compiled for myself. You can find files attached and try if it works for you.


armeabi-v7a.zip (292.8 kB)
x86.zip (309.1 kB)
Comment
Add comment · Show 9 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Strangerweather · Mar 30, 2016 at 10:22 AM 0
Share

Hi! Are these different from these: https://github.com/codecoding/SQLite4Unity3d? I'm asking as I'm having no luck with SQLite4Unity3d on my N7 (2013).

avatar image vanshika1012 Strangerweather · May 23, 2016 at 04:23 PM 0
Share

@Strangerweather - I am stuck with the same problem. Did you got any solution?

avatar image Strangerweather vanshika1012 · May 23, 2016 at 05:06 PM 0
Share

Hi @vanshika1012, is your problem with setting up SQLite4Unity3d? If so, yes, I eventually sorted it out with a lot of help from a very kind soul. Let me know. If it's SQLite4Unity3d you might want to post a new question as it is OT here. I'll try and help.

avatar image Brogan89 · May 17, 2017 at 09:19 AM 0
Share

This helped for me. Thanks so you much. I don't understand it, but now it works :D

avatar image YakiC · Aug 26, 2017 at 07:32 PM 0
Share

I spent so much time looking for why I couldn't access my database and just adding the two .so files in my Assets made it working. Thanks a lot !

avatar image Nandagopal92 · Mar 12, 2018 at 06:18 AM 1
Share

This worked on my device that was running Android 7.0, but now after i updated it to Oreo, it is not working anymore.

Any help regarding this, please?

avatar image JoeriVDE · Mar 14, 2018 at 10:48 AM 0
Share

@Nandagopal92 Same here, doesn't work on Android 8.0. I sure as sh*t ain't an expert, but perhaps it has to do arm64-v8a in this documentation? Tested on a OP5T. I'm going to try to compile it for that architecture (following $$anonymous$$aan-Yy guide) and place it in the according folder, see if that helps.

avatar image JoeriVDE JoeriVDE · Mar 14, 2018 at 01:29 PM 0
Share

Never$$anonymous$$d and it also seems to work when I compiled the library myself for x86 and AR$$anonymous$$

avatar image Doucky JoeriVDE · Aug 12, 2018 at 01:43 PM 1
Share

@JoeriVDE Can you share us this Library please ? I Don't understand at all how to compile "C sourde code as an amalgamation" files into a .so under VS2017

avatar image
0

Answer by Bonobo · Dec 08, 2014 at 09:49 AM

Unfortunately not. We changed the way that we were getting data (now we're parsing downloaded JSON) so I never had time to solve the issue before we had to move on.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

SQLite Transaction Update Problem on Android 0 Answers

SqlLite , android and unity 1 Answer

Unity sqlite to android: no such table 0 Answers

Sqlite3.dll not integrated into Android Build 1 Answer

SQLite Database for Android Unity Error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges