升级到EntityframworkCore.Sqlite 2.0.0 preview-1会导致Android应用程序崩溃

时间:2017-05-11 08:32:16

标签: xamarin.android xamarin.forms entity-framework-core sqlite-net

当我将我的EFCore.Sqlite 1.1.2升级到Ver 2.0.0 preview-1时,我的应用程序在部署之前崩溃了。 没有错误,没有任何异常!

我想摆脱这个错误:

  

未经授权访问“/system/lib/libsqlite.so”

我在互联网上搜索了很多,他们中的大多数人都表示错误会在下一次EFCore.Sqlite更新时消失。

UPW应用程序在新的sqlite更新包中运行没有任何问题。 问题是Android。 有什么事我必须做吗?

  <package id="Autofac" version="4.5.0" targetFramework="monoandroid71" />
  <package id="AutoMapper" version="6.0.2" targetFramework="monoandroid71" />
  <package id="Com.Airbnb.Android.Lottie" version="2.0.0.0-beta4" targetFramework="monoandroid71" />
  <package id="DNTPersianUtils.Core" version="2.2.0" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Authentication" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Authentication.Cookies" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Cryptography.Internal" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Cryptography.KeyDerivation" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.DataProtection" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.DataProtection.Abstractions" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Hosting.Abstractions" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Hosting.Server.Abstractions" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Http" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Http.Abstractions" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Http.Extensions" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Http.Features" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Identity" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.Identity.EntityFrameworkCore" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.AspNetCore.WebUtilities" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.CSharp" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Microsoft.Data.Sqlite" version="1.1.1" targetFramework="monoandroid71" />
  <package id="Microsoft.Data.Sqlite.Core" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Relational" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Sqlite" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Sqlite.Core" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Caching.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Caching.Memory" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Configuration" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Configuration.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.DependencyInjection" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.FileProviders.Abstractions" version="1.0.1" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Logging" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Logging.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.ObjectPool" version="1.0.1" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Options" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Primitives" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.WebEncoders" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.Net.Http.Headers" version="1.0.2" targetFramework="monoandroid71" />
  <package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="monoandroid71" />
  <package id="Microsoft.Packaging.Tools" version="1.0.0-preview1-25301-01" targetFramework="monoandroid71" />
  <package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="NETStandard.Library" version="2.0.0-preview1-25301-01" targetFramework="monoandroid71" />
  <package id="Newtonsoft.Json" version="10.0.2" targetFramework="monoandroid71" />
  <package id="Remotion.Linq" version="2.1.1" targetFramework="monoandroid71" />
  <package id="SQLite" version="3.13.0" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.bundle_green" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.core" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.provider.e_sqlite3.android" version="1.1.5" targetFramework="monoandroid71" />
  <package id="System.AppContext" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Buffers" version="4.0.0" targetFramework="monoandroid71" />
  <package id="System.Collections" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Collections.Immutable" version="1.3.1" targetFramework="monoandroid71" />
  <package id="System.Collections.Specialized" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ComponentModel" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ComponentModel.Annotations" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ComponentModel.TypeConverter" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Console" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Data.Common" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Contracts" version="4.0.1" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.DiagnosticSource" version="4.3.1" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Globalization" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Globalization.Calendars" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Globalization.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Interactive.Async" version="3.1.1" targetFramework="monoandroid71" />
  <package id="System.IO" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.Compression" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.FileSystem" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq.Queryable" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Net.Http" version="4.3.1" targetFramework="monoandroid71" />
  <package id="System.Net.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Net.Sockets" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Net.WebSockets" version="4.0.0" targetFramework="monoandroid71" />
  <package id="System.ObjectModel" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.TypeExtensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="4.4.0-preview1-25305-02" targetFramework="monoandroid71" />
  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Handles" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Serialization.Formatters" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Claims" version="4.0.1" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Security.Principal" version="4.0.1" targetFramework="monoandroid71" />
  <package id="System.Text.Encoding" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Text.Encodings.Web" version="4.0.0" targetFramework="monoandroid71" />
  <package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading.Tasks" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading.Timer" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ValueTuple" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.XDocument" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Annotations" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.UI" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.Utils" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Design" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Fragment" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Media.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Transition" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v4" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.AppCompat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.CardView" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.MediaRouter" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.Palette" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.RecyclerView" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Build.Download" version="0.4.4" targetFramework="monoandroid71" />
  <package id="Xamarin.Forms" version="2.3.4.231" targetFramework="monoandroid71" />
  <package id="Xamarin.Forms.CarouselView" version="2.3.0-pre2" targetFramework="monoandroid71" />
  <package id="Xamarin.Forms.GoogleMaps" version="1.8.1" targetFramework="monoandroid71" />
  <package id="Xamarin.GooglePlayServices.Base" version="29.0.0.1" targetFramework="monoandroid71" />
  <package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.1" targetFramework="monoandroid71" />
  <package id="Xamarin.GooglePlayServices.Maps" version="29.0.0.1" targetFramework="monoandroid71" />

创建干净的新项目后:

<packages>
  <package id="Microsoft.CSharp" version="4.3.0" targetFramework="monoandroid71" />
  <package id="Microsoft.Data.Sqlite.Core" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Relational" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Sqlite" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.EntityFrameworkCore.Sqlite.Core" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Caching.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Caching.Memory" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Configuration" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Configuration.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.DependencyInjection" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Logging" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Logging.Abstractions" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Options" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.Extensions.Primitives" version="2.0.0-preview1-final" targetFramework="monoandroid71" />
  <package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="monoandroid71" />
  <package id="Microsoft.Packaging.Tools" version="1.0.0-preview1-25301-01" targetFramework="monoandroid71" />
  <package id="NETStandard.Library" version="2.0.0-preview1-25301-01" targetFramework="monoandroid71" />
  <package id="Remotion.Linq" version="2.1.1" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.bundle_green" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.core" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.lib.e_sqlite3.android" version="1.1.5" targetFramework="monoandroid71" />
  <package id="SQLitePCLRaw.provider.e_sqlite3.android" version="1.1.5" targetFramework="monoandroid71" />
  <package id="System.Collections" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Collections.Immutable" version="1.3.1" targetFramework="monoandroid71" />
  <package id="System.ComponentModel" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ComponentModel.Annotations" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Data.Common" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Diagnostics.DiagnosticSource" version="4.3.1" targetFramework="monoandroid71" />
  <package id="System.Interactive.Async" version="3.1.1" targetFramework="monoandroid71" />
  <package id="System.Linq" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Linq.Queryable" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ObjectModel" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="4.4.0-preview1-25305-02" targetFramework="monoandroid71" />
  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.Threading" version="4.3.0" targetFramework="monoandroid71" />
  <package id="System.ValueTuple" version="4.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Annotations" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.UI" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Core.Utils" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Design" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Fragment" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Media.Compat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Transition" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v4" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.AppCompat" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.CardView" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.MediaRouter" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.Palette" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.v7.RecyclerView" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Android.Support.Vector.Drawable" version="25.3.1" targetFramework="monoandroid71" />
  <package id="Xamarin.Build.Download" version="0.4.4" targetFramework="monoandroid71" />
  <package id="Xamarin.Forms" version="2.3.4.231" targetFramework="monoandroid71" />
</packages>

1 个答案:

答案 0 :(得分:0)

卸载这些软件包:

  • Microsoft.Data.Sqlite(或更新到2.0.0-preview1-final)
  • SQLite的