Unable to compile into iOS/Android devices since 7.5 upgrades

TimSaeleeTimSaelee USMember ✭✭

I believe my project stopped working since I updated to VS 7.5 but I'm not 100% sure. All the Git versions that used to work also do not compile anymore. My project was using Xamarin Forms 2.4.0.38779 and for Android build target framework 7.0 Nougat

How do I downgrade back to VS 7.4? Should I also downgrade any runtimes such as Mono, Xamarin.Mac etc?

Here is my stacktrace (the emojis are actually D Drive..not sure why that's there for OSX?):

[Mono] Assembly Ref addref FFImageLoading[0x75368f4f00] -> System.Runtime.Extensions[0x7523bcd800]: 6 [Mono] Unloading image System.Globalization.dll [0x7521677000].
[Mono] Image addref System.Globalization[0x751f5e5980] -> System.Globalization.dll[0x752211f800]: 7 [Mono] Config attempting to parse: 'System.Globalization.dll.config'.
[Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.Globalization/System.Globalization.config'.
SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double' SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double'
SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double' SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double'
[art] Starting a blocking GC Explicit
[art] Explicit concurrent mark sweep GC freed 25091(1362KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 9MB/15MB, paused 139us total 19.236ms [Mono] GC_TAR_BRIDGE bridges 32 objects 38 opaque 2 colors 32 colors-bridged 32 colors-visible 32 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.02ms tarjan 0.06ms scc-setup 0.01ms gather-xref 0.00ms xref-setup 0.02ms cleanup 0.03ms [Mono] GC_BRIDGE: Complete, was running for 20.02ms [Mono] GC_MINOR: (Nursery full) time 5.94ms, stw 6.46ms promoted 880K major size: 2000K in use: 1352K los size: 1024K in use: 679K
SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double' SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double'
SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double' SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double'
SetValue: Can not convert System.ReadOnlySpan1[[System.Char, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to type 'System.Double' [Mono] Unloading image System.ObjectModel.dll [0x751f092000]. [Mono] Image addref System.ObjectModel[0x751f0d9b80] -> System.ObjectModel.dll[0x7523b36000]: 8 [Mono] Config attempting to parse: 'System.ObjectModel.dll.config'. [Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/System.ObjectModel/System.ObjectModel.config'. [Mono] Assembly Ref addref FormsPlugin.Iconize[0x7523a2e400] -> System.ObjectModel[0x75222c1080]: 6 [Mono] The request to load the assembly mscorlib v4.0.0.0 was remapped to v2.0.5.0 [Mono] Unloading image mscorlib.dll [0x7523bf9000]. [Mono] Config attempting to parse: 'mscorlib.dll.config'. [Mono] Config attempting to parse: '/usr/local/etc/mono/assemblies/mscorlib/mscorlib.config'. [[email protected][MainActivity]] ThreadedRenderer.create() translucent=false [InputTransport] Input channel constructed: fd=65 [[email protected][MainActivity]] setView = [email protected][MainActivity] touchMode=true Thread finished: <Thread Pool> #6 [Mono] DllImport attempting to load: '/system/lib64/liblog.so'. [Mono] DllImport loaded library '/system/lib64/liblog.so'. [Mono] DllImport searching in: '/system/lib64/liblog.so' ('/system/lib64/liblog.so'). [Mono] Searching for '__android_log_print'. [Mono] Probing '__android_log_print'. [Mono] Found as '__android_log_print'. [MonoDroid] UNHANDLED EXCEPTION: [MonoDroid] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. [MonoDroid] at Xamarin.Forms.OnPlatform1[T].op_Implicit (Xamarin.Forms.OnPlatform1[T] onPlatform) [0x00036] in D:\agent\_work\1\s\Xamarin.Forms.Core\OnPlatform.cs:71 [MonoDroid] at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) [MonoDroid] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004b] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 [MonoDroid] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <f32579baafc1404fa37ba3ec1abdc0bd>:0 [MonoDroid] at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func1[TResult] getConverter, System.IServiceProvider serviceProvider) [0x002f8] in D:\agent_work\1\s\Xamarin.Forms.Core\Xaml\TypeConversionExtensions.cs:180
[MonoDroid] at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func`1[TResult] minfoRetriever, System.IServiceProvider serviceProvider) [0x00021] in D:\agent_work\1\s\Xamarin.Forms.Core\Xaml\TypeConversionExtensions.cs:76
[MonoDroid] at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.TrySetValue (System.Object element, Xamarin.Forms.BindableProperty property, System.Boolean attached, System.Object value, System.Xml.IXmlLineInfo lineInfo, Xamarin.Forms.Xaml.Internals.XamlServiceProvider serviceProvider, System.Exception& exception) [0x00075] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ApplyPropertiesVisitor.cs:438
[MonoDroid] at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.SetPropertyValue (System.Object xamlelement, Xamarin.Forms.Xaml.XmlName propertyName, System.Object value, System.Object rootElement, Xamarin.Forms.Xaml.INode node, Xamarin.Forms.Xaml.HydratationContext context, System.Xml.IXmlLineInfo lineInfo) [0x00077] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ApplyPropertiesVisitor.cs:326
[MonoDroid] at Xamarin.Forms.Xaml.ApplyPropertiesVisitor.Visit (Xamarin.Forms.Xaml.ElementNode node, Xamarin.Forms.Xaml.INode parentNode) [0x00152] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ApplyPropertiesVisitor.cs:124
[MonoDroid] at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x000ab] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:149
[MonoDroid] at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:143
[MonoDroid] at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:145
[MonoDroid] at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:145
[MonoDroid] at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00043] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:201
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Visit (Xamarin.Forms.Xaml.RootNode rootnode, Xamarin.Forms.Xaml.HydratationContext visitorContext) [0x0007b] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:141
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.String xaml) [0x0004b] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:89
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.Type callingType) [0x0002f] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:68
[MonoDroid] at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml] (TXaml view, System.Type callingType) [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ViewExtensions.cs:36
[MonoDroid] at MyApp.TabbedPages.HomeScreen.InitializeComponent () [0x00001] in /Users/tim/Projects/AppName/obj/Debug/MyApp.TabbedPages.Home.xaml.g.cs:52
[MonoDroid] at MyApp.TabbedPages.HomeScreen..ctor () [0x0008d] in /Users/tim/Projects/AppName/TabbedPages/Home.xaml.cs:233
[MonoDroid] at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
[MonoDroid] at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in :0
[MonoDroid] --- End of inner exception stack trace ---
[MonoDroid] at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00017] in :0
[MonoDroid] at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in :0
[MonoDroid] at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in :0
[MonoDroid] at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in :0
[MonoDroid] at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x0002c] in :0
[MonoDroid] at System.Activator.CreateInstance (System.Type type) [0x00000] in :0
[MonoDroid] at Xamarin.Forms.Xaml.CreateValuesVisitor.Visit (Xamarin.Forms.Xaml.ElementNode node, Xamarin.Forms.Xaml.INode parentNode) [0x00253] in D:\agent_work\1\s\Xamarin.Forms.Xaml\CreateValuesVisitor.cs:93
[MonoDroid] at Xamarin.Forms.Xaml.ElementNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x000ab] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:149
[MonoDroid] at Xamarin.Forms.Xaml.RootNode.Accept (Xamarin.Forms.Xaml.IXamlNodeVisitor visitor, Xamarin.Forms.Xaml.INode parentNode) [0x00078] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlNode.cs:203
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Visit (Xamarin.Forms.Xaml.RootNode rootnode, Xamarin.Forms.Xaml.HydratationContext visitorContext) [0x00054] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:138
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.String xaml) [0x0004b] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:89
[MonoDroid] at Xamarin.Forms.Xaml.XamlLoader.Load (System.Object view, System.Type callingType) [0x0002f] in D:\agent_work\1\s\Xamarin.Forms.Xaml\XamlLoader.cs:68
[MonoDroid] at Xamarin.Forms.Xaml.Extensions.LoadFromXaml[TXaml] (TXaml view, System.Type callingType) [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Xaml\ViewExtensions.cs:36
[MonoDroid] at MyApp.TabbedMaster.InitializeComponent () [0x00001] in /Users/tim/Projects/AppName/obj/Debug/MyApp.TabbedMaster.xaml.g.cs:19
[MonoDroid] at MyApp.TabbedMaster..ctor () [0x00008] in /Users/tim/Projects/AppName/TabbedMaster.xaml.cs:11
[MonoDroid] at MyApp.App.checkVersion () [0x00395] in /Users/tim/Projects/AppName/App.xaml.cs:216
[MonoDroid] at MyApp.App.OnStart () [0x0000c] in /Users/tim/Projects/AppName/App.xaml.cs:89
[MonoDroid] at Xamarin.Forms.Application.SendStart () [0x00000] in D:\agent_work\1\s\Xamarin.Forms.Core\Application.cs:249
[MonoDroid] at Xamarin.Forms.Platform.Android.FormsAppCompatActivity+d__40.MoveNext () [0x0003b] in D:\agent_work\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:399
[MonoDroid] --- End of stack trace from previous location where exception was thrown ---
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0
[MonoDroid] at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in :0
[MonoDroid] at Android.App.SyncContext+<>c__DisplayClass2_0.b__0 () [0x00000] in <3bb26451d98f4ed79f1edd435d37ff28>:0
[MonoDroid] at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <3bb26451d98f4ed79f1edd435d37ff28>:0
[MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <3bb26451d98f4ed79f1edd435d37ff28>:0
[MonoDroid] at (wrapper dynamic-method) System.Object.f806efb8-1b12-4088-a66c-6f81b6528d74(intptr,intptr)
[art] JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
[Mono] DllImport searching in: '__Internal' ('(null)').
[Mono] Searching for 'java_interop_jnienv_throw'.
[Mono] Probing 'java_interop_jnienv_throw'.
[Mono] Found as 'java_interop_jnienv_throw'.

Posts

This discussion has been closed.