This may be related to #1990, however it is not the same issue.
DbContext exposing that class as a DbSet<T>DbContext derivative, override OnConfiguring and add the following code before the call to base.OnConfiguring(optionsBuilder);... optionsBuilder.UseSqlite($"Filename=/data/user/0/com.companyname/files/LinkText.db", sqliteOptionsBuilder => sqliteOptionsBuilder.SuppressForeignKeyEnforcement());
using (LinkTestContext context = new LinkTestContext())
{
context.Database.EnsureCreated();
}
Note: The attached reproduction targets the Android 8.1 SDK, but I have also updated this to SDK 9.0 and have the same results.
The application should start, and the default "Welcome to Xamarin.Forms!" should be displayed.
Microsoft Visual Studio Enterprise 2017
Version 15.9.4
VisualStudio.15.Release/15.9.4+28307.222
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Enterprise
Architecture Diagrams and Analysis Tools 00369-60000-00001-AA481
Microsoft Architecture Diagrams and Analysis Tools
Visual C++ 2017 00369-60000-00001-AA481
Microsoft Visual C++ 2017
.NET Portability Analyzer 1.1.10808.0
Evaluates portability of assemblies across .NET platforms.
Add New File 3.5.134
The fastest and easiest way to add new files to any project - including files that start with a dot
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60913.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.9.03024.0
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.3.6000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 15.9.02046.0
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.3.6000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
Bundler & Minifier 2.8.396
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.
C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Clean Solution 1.4.30
Cleans up the solution for the next time you open it. Closes open documents and collapses folders automatically when a solution is being closed.
Clear MEF Component Cache 1.4
Clears the Visual Studio MEF component cache to fix issues with cache corruption.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
CustomizeVSWindowTitle 3 1.0
Information about my package
Dotfuscator Community Edition 5.36.0.7050-e77ce80a6
PreEmptive Protection - Dotfuscator CE
EditorConfig Language Service 1.17.246
Language service for .editorconfig files.
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
EMDKProfileManagerWizardVS 1.0
EMDK for Xamarin
Entity Framework Core Power Tools 1.0
Adds useful design-time EF Core DbContext features to the Visual Studio Solution Explorer context menu.
Extensibility Message Bus 1.1.49 (remotes/origin/d15-8@ee674f3)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0
Fabric Diagnostic Events
File Icons 2.7
Adds icons for files that are not recognized by Solution Explorer
File Nesting 2.6.85
Automatically nest files based on file name and enables developers to nest and unnest any file manually
GitHub.VisualStudio 2.6.1.6227
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
HTML Tools 1.0.3
Productivity tools for the HTML editor
Image Optimizer 4.0.132
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.
Image Sprites 1.4.58
Boost your website's performance by creating image sprites to reduce the amount of HTTP requests needed.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
Markdown Editor 1.12.236
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.
Microsoft Azure HDInsight Azure Node 2.3.6000.0
HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.3.6000.0
Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 2.4
Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.3.6000.0
Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 1.0
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
MLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed Info
Mono Debugging for Visual Studio 4.13.12-pre (9bc9548)
Support for debugging Mono processes with Visual Studio.
Node.js Tools 1.4.21001.1 Commit Hash:8dd15923800d931b153ab9e4de74e42a74eba5e6
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Package Installer 2.0.103
Makes it easier, faster and more convenient than ever to install Bower, npm, Yarn, JSPM, TSD, Typings and NuGet packages to any project
Package Security Alerts 1.0.22
Identifies npm and Bower packages that contains known security vulnerabilities to ensure your project is always using the most secure package versions.
PowerShell Pro Tools for Visual Studio 1.0
A set of tools for developing and debugging PowerShell scripts and modules in Visual Studio.
Project File Tools 1.0.1
Provides Intellisense and other tooling for XML based project files such as .csproj and .vbproj files.
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
R Tools for Visual Studio 1.3.40517.1016
Provides project system, R Interactive window, plotting, and more for the R programming language.
Redgate SQL Change Automation 3.0.18341.3167
Extend DevOps processes to your SQL Server databases and safely automate database deployments.
Visit https://www.red-gate.com/sca/productpage for more information.
Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.
This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation.
Visual Studio is a registered trademark of Microsoft Corporation.
SQL Change Automation contains code from the following open source software:
NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Log4Net http://logging.apache.org/log4net/
StringTemplate https://github.com/antlr/stringtemplate4
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/
This product contains icons from http://www.visualpharm.com distributed under a free backlink license.
For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the SQL Change Automation application folder.
Redgate SQL Prompt 9.4.3.7121
Write, format, and refactor SQL effortlessly
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
ResXManager 1.33.1745.0
Manage localization of all ResX-Based resources in one place. Shows all resources of a solution and let's you edit the strings and their localizations in a well-arranged data grid.
SQL Server Data Tools 15.1.61810.11040
Microsoft SQL Server Data Tools
SQL Server Reporting Services 15.0.900.163
Microsoft SQL Server Reporting Services Designers
Version 15.0.900.163
SQLite & SQL Server Compact Toolbox 4.7
SQLite & SQL Server Compact Toolbox adds scripting, import, export, rename, query execution and much more to SQL Server Compact & SQLite Data Connections.
TfsGoOfflinePackage Extension 1.0
TfsGoOfflinePackage Visual Studio Extension Detailed Info
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript Tools 15.9.20918.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Apache Cordova 15.123.7408.1
Visual Studio Tools for Apache Cordova
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
Visual Studio Tools for Universal Windows Apps 15.0.28307.208
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
VSColorOutput 2.6.3
Color output for build and debug windows - http://mike-ward.net/vscoloroutput
Web Compiler 1.12.394
Compiler for LESS, Sass and CoffeeScript files
Web Essentials 2017 2.0.44
The easiest way to set up Visual Studio for the ultimate web development experience. Requires Visual Studio 2017 Update 8 or newer
Windows Template Studio 2.5.18319.1
Windows Template Studio quickly builds a UWP app, using a wizard-based UI to turn your needs into a foundation of Windows 10 patterns and best practices.
Xamarin 4.12.3.77 (d15-9@e3f40b477)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.16.13 (45a16efd4)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 1.1.128 (6f5ebb2)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.1.4.2 (HEAD/8255f42fc)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 12.2.1.12 (65ec520)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
01-15 13:51:56.917 27715 27715 I MonoDroid: UNHANDLED EXCEPTION:
01-15 13:51:56.942 27715 27715 I MonoDroid: System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
01-15 13:51:56.942 27715 27715 I MonoDroid: Parameter name: key
01-15 13:51:56.942 27715 27715 I MonoDroid: at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteDateTimeAddTranslator..ctor () [0x000c5] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator..cctor () [0x0000e] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: --- End of inner exception stack trace ---
01-15 13:51:56.942 27715 27715 I MonoDroid: at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
01-15 13:51:56.942 27715 27715 I MonoDroid: at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: --- End of stack trace from previous location where exception was thrown ---
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00065] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.942 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00080] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00000] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine+<>c__DisplayClass1_0.
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService (System.Type serviceType, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope serviceProviderEngineScope) [0x00032] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService (System.Type serviceType) [0x00013] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService (System.IServiceProvider provider, System.Type serviceType) [0x00034] in <32c7da0bde3e4433b1fa3a6000248638>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T] (System.IServiceProvider provider) [0x0000e] in <32c7da0bde3e4433b1fa3a6000248638>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies () [0x00017] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider () [0x000b5] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Internal.InternalAccessorExtensions.GetService[TService] (Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure`1[T] accessor) [0x00005] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService] (Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure`1[T] accessor) [0x0000b] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.get_DatabaseCreator () [0x0000a] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated () [0x00000] in <5d23445a33f647f78196b4405ef07a7f>:0
01-15 13:51:56.943 27715 27715 I MonoDroid: at LinkTest.App..ctor () [0x00018] in
01-15 13:51:56.943 27715 27715 I MonoDroid: at LinkTest.Droid.MainActivity.OnCreate (Android.OS.Bundle savedInstanceState) [0x00022] in
01-15 13:51:56.943 27715 27715 I MonoDroid: at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in
01-15 13:51:56.943 27715 27715 I MonoDroid: at (wrapper dynamic-method) System.Object.7(intptr,intptr,intptr)
01-15 13:51:56.953 27715 27715 W art : JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
01-15 13:51:56.955 27715 27715 D AndroidRuntime: Shutting down VM
01-15 13:51:56.960 27715 27715 E AndroidRuntime: FATAL EXCEPTION: main
01-15 13:51:56.960 27715 27715 E AndroidRuntime: Process: com.companyname, PID: 27715
01-15 13:51:56.960 27715 27715 E AndroidRuntime: android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
01-15 13:51:56.960 27715 27715 E AndroidRuntime: Parameter name: key
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteDateTimeAddTranslator..ctor () [0x000c5] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator..cctor () [0x0000e] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: --- End of inner exception stack trace ---
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: --- End of stack trace from previous location where exception was thrown ---
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00065] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.960 27715 27715 E AndroidRuntime: at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extension
01-15 13:51:56.961 27715 27715 D Error : ERR: exClass=android.runtime.JavaProxyThrowable
01-15 13:51:56.961 27715 27715 D Error : ERR: exMsg=System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
01-15 13:51:56.961 27715 27715 D Error : Parameter name: key
01-15 13:51:56.961 27715 27715 D Error : at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteDateTimeAddTranslator..ctor () [0x000c5] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator..cctor () [0x0000e] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.961 27715 27715 D Error : --- End of inner exception stack trace ---
01-15 13:51:56.961 27715 27715 D Error : at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
01-15 13:51:56.961 27715 27715 D Error : at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : --- End of stack trace from previous location where exception was thrown ---
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00065] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions
01-15 13:51:56.961 27715 27715 D Error : ERR: file=MainActivity.java
01-15 13:51:56.961 27715 27715 D Error : ERR: class=md53db492a3d380c771c7b5c0e25ba9aa8e.MainActivity
01-15 13:51:56.961 27715 27715 D Error : ERR: method=n_onCreate line=-2
01-15 13:51:56.961 27715 27715 D Error : ERR: stack=android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
01-15 13:51:56.961 27715 27715 D Error : Parameter name: key
01-15 13:51:56.961 27715 27715 D Error : at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteDateTimeAddTranslator..ctor () [0x000c5] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator..cctor () [0x0000e] in <0f42d1d6a07f4dc1b0921978d50b78af>:0
01-15 13:51:56.961 27715 27715 D Error : --- End of inner exception stack trace ---
01-15 13:51:56.961 27715 27715 D Error : at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
01-15 13:51:56.961 27715 27715 D Error : at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <6b585abc05a94e4ab7142fa16e54773d>:0
01-15 13:51:56.961 27715 27715 D Error : --- End of stack trace from previous location where exception was thrown ---
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x00065] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite singletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0000d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00072] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite constructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0001b] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[TArgument,TResult].VisitCallSite (Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite callSite, TArgument argument) [0x00056] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped (Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite scopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope scope) [0x0002d] in <8fbee185878b4d90897b17a3eebea7d7>:0
01-15 13:51:56.961 27715 27715 D Error : at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton (Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite sin
01-15 13:51:56.961 27715 27715 D Error : ERR: TOTAL BYTES WRITTEN: 94356
01-15 13:51:56.967 1249 3994 W ActivityManager: Force finishing activity com.companyname/md53db492a3d380c771c7b5c0e25ba9aa8e.MainActivity
Don't know if this helps, but as far as I can see, the code that is failing is a part of Microsoft.EntityFrameworkCore.Sqlite here and seems to be looking for methods of the DateTime class...
private readonly Dictionary<MethodInfo, string> _methodInfoToUnitSuffix = new Dictionary<MethodInfo, string>
{
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddYears), new[] { typeof(int) }), " years" },
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddMonths), new[] { typeof(int) }), " months" },
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddDays), new[] { typeof(double) }), " days" },
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddHours), new[] { typeof(double) }), " hours" },
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddMinutes), new[] { typeof(double) }), " minutes" },
{ typeof(DateTime).GetRuntimeMethod(nameof(DateTime.AddSeconds), new[] { typeof(double) }), " seconds" }
};
Could the linker be removing any of these methods because they do not appear to be being used elsewhere? I assume that their usage here would not be detected as after compilation the references will actually be being strings containing the method names rather than references to the methods.
Looks like the Microsoft.EntityFrameworkCore.Sqlite assembly is not linker friendly.
You can add LinkDescription.xml file containing
<?xml version="1.0" encoding="UTF-8" ?>
<linker>
<assembly fullname="mscorlib">
<type fullname="System.DateTime" preserve="methods" />
</assembly>
</linker>
and set its build action to LinkDescription
@radekdoulik I assume that this would be within the Android project itself and that I would then return the "Linking" option on the "Android Options" properties tab to the default "SDK Assemblies Only"?
Yes, add it to your project, set the build action for it and then hopefully you would be able to enable the linking again.
I tested the solution with Xamarin.iOS. Works fine!
Apologies for the delay in getting back to you. I too have now tested this using the repro that I originally provided for the fault and can confirm that it works for me too.
Thanks for your help.
Yup same issue, same fix worked. issue happened to me when upgrading Microsoft.EntityFrameworkCore.Sqlite from 2.1 to 2.2
I'm getting this same issue on Xamarin.iOS, with the latest version of EFCore 2.2.2. Adding the linker description file as mentioned above worked for me.
Looks like the
Microsoft.EntityFrameworkCore.Sqliteassembly is not linker friendly.You can add
LinkDescription.xmlfile containing<?xml version="1.0" encoding="UTF-8" ?> <linker> <assembly fullname="mscorlib"> <type fullname="System.DateTime" preserve="methods" /> </assembly> </linker>and set its build action to
LinkDescription
We can confirm that this helps also nowadays!
Looks like the
Microsoft.EntityFrameworkCore.Sqliteassembly is not linker friendly.You can add
LinkDescription.xmlfile containing<?xml version="1.0" encoding="UTF-8" ?> <linker> <assembly fullname="mscorlib"> <type fullname="System.DateTime" preserve="methods" /> </assembly> </linker>and set its build action to
LinkDescription
This solved an issue I had with EF Core 3.1.2 on Xamarin IOS as well.
Most helpful comment
Looks like the
Microsoft.EntityFrameworkCore.Sqliteassembly is not linker friendly.You can add
LinkDescription.xmlfile containingand set its build action to
LinkDescription