Harsh Soni
Harsh Soni

Reputation: 52

Error : while working with SQLite in windows phone 8

this is my first post. I get this error

The processor architecture of the project being built "Any CPU" is not supported by the referenced SDK "SQLite.WP80, Version=3.8.10.2". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM".

while working in windows phone app and using SQLite. If I set the architecture to ARM then it will disappear but I got another error of missing "community" from namespace in SQLite.cs file. Any one can help me out? Thanks in advance.

Upvotes: 0

Views: 731

Answers (1)

Keval Langalia
Keval Langalia

Reputation: 1892

follow this:

Install Extension "SQLite for Windows Phone" from Tools -> Extension and Updates Menu. check screenshot 1

enter image description here

Then Install NuGet Pacakge sqlite-net-wp8 from NuGet Package manager. check screenshot 2

enter image description here

then add Conditional Compilation symbol USE_WP8_NATIVE_SQLITE in Project properties -> Build settings. check screenshot 3

enter image description here

Then Try to ReBuild the solutions and the errors will be gone..!

(I assumed that you've already copied those two files SQLite.cs and SQLiteAsync.cs)

Reference Links:

http://social.technet.microsoft.com/wiki/contents/articles/18204.how-to-use-sqlite-with-a-windows-phone-8-application.aspx

Type or namespace 'Sqlite' could not be found in SQLite.cs

Upvotes: 1

Related Questions