Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
avatar image
0
Question by kxkhor · Jul 20, 2016 at 08:54 PM · dllmonovisualstudiosqlite

using Mono.Data.Sqlite missing an assembly reference?

Dear all, I'm trying to use SQLite in unity for scoring purposes by following this tutorial https://www.youtube.com/watch?v=9SHz8mm-4Pw.

However, this error appeared when I add:

 using Mono.Data.Sqlite; 

Assets/Scripts/DataBaseManager.cs(4,12): error CS0234: The type or namespace name Data' does not exist in the namespace Mono'. Are you missing an assembly reference?

The Mono.Data.Sqlite DLL file had been put into the Assets>Plugins folder and Assets folder but the error is still the same.

*This dll can work previously, unitl I installed modules: Web Player, Microsoft Visual Studio Tools for Unity, Windows Build Support using Download Assistant to solve other issues.

Hope fellow expert can give your advise on how to solve this issue. Thank you very much!

Version: Unity version: UNITY 5.3.5 Visual Studio version: 2015 .Net framework: 4.6.01055

alt text

error.png (137.2 kB)
Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by kxkhor · Jul 21, 2016 at 12:11 PM

I already solved the problem. Previously I'm using 32bit Unity. The version is change to 64bit when i use the download assistant. Therefore, I reinstall using 32bit and follow this instruction to install other modules without affecting the 32bit version: http://answers.unity3d.com/questions/1110749/how-to-get-the-pc-standalone-module-loaded-into-th.html. It works well again! Thank you.

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
avatar image
1

Answer by walidabazo · Oct 01, 2017 at 04:48 PM

You can show this videos to connect unity 3d and sqlite and solved all dll error compile for different windows 32bit and 64bit

https://youtu.be/CtDSQkLdlZg

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
avatar image
1

Answer by codemaker2015 · Dec 16, 2021 at 01:29 PM

This error occurs when we are trying to use SQLite in Unity 2019 or later versions. This error occurs due to missing of Mono library for Unity 2019 or later versions. You won't get this error if you are using Unity 2018 or less versions.

If you installed Unity 2018 or below versions then go to the installation directory <UnityInstallationDirecory>\Editor\Data\Mono\lib\mono\2.0 and copy the following files:

 I18N.MidEast.dll
 I18N.Other.dll
 I18N.Rare.dll
 I18N.West.dll
 Mono.Data.Sqlite.dll
 Mono.Data.SqliteClient.dll
 System.Data.dll

to the project's <ProjectName>\Assets\Plugins path.

Or you can simply resolve this error by downgrading the Unity version to 2018 or below.

Comment
Add comment · Show 1 · 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 Ionselat · Feb 14 at 01:21 AM 0
Share

This fixed my error when the accepted answer did not.

avatar image
0

Answer by William-Wang · Aug 09, 2018 at 05:38 AM

copy Mono.Data.Sqlite.dll and System.Data.dll to Assets\Plugins directory. and select the dll file and in inspector select Any Platform. exclude platforms is none. alt text


anyplaform.png (16.0 kB)
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

7 People are following this question.

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

Related Questions

Build game with dll does not work properly 0 Answers

The assembly reference failed when trying to access Mono.Data.Sqlite to connect to the Sqlite database 0 Answers

Mono.Data.Sqlite vs. System.Data.SQLite 2 Answers

Replace Microsoft dll's with Mono dll's in Visual Studio? 5 Answers

how to connect to mssql in unity for hololesn (Build Setting Error) 0 Answers


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