Xamarin Forms v4.3.0.947036 VS 2019
I made a dummy App (Master/Detail Xamarin template) and published it to an iPhone connected to a MAC on my network. Runs fine.
I have another App (my main App) that functions fine on both Android/iOS emulators and Android Phone.
However, when I try and publish it to the iPhone (iOS 12.4) (same setup as with the Dummy App) I get the following error when I compile:
Can't resolve the reference 'System.Void Xamarin.Forms.Log::Warning(System.String,System.String)', referenced from the method 'System.Void Xamarin.Forms.Pages.BaseDataSource/<Initialize>d__22::MoveNext()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
This is the full error in the output window:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(842,3): error MT2101: Can't resolve the reference 'System.Void Xamarin.Forms.Log::Warning(System.String,System.String)', referenced from the method 'System.Void Xamarin.Forms.Pages.BaseDataSource/<Initialize>d__22::MoveNext()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
Does anyone have any ideas on what could possibly be causing the error?
The problem was with the pre-release 'themes'. I removed all references to them from any Projects and the error disappeared.
Reference: https://forums.xamarin.com/discussion/140586
Related
I've tried to build my App in Visual Studio / Xamarin. Android is working fine. I get the error for IOS, that the Java.Interop assembly could not be find. I read that it could be the Mono.Android Assembly. But when I remove it from my c# main project the Android project can't be build. Any suggestions what I can try to do that both systems can be build correctly?
I'm using Visual Studio Enterprise 2019 with newest Xamarin.
Cannot find the assembly 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' referenced from '/Users/[user]/Library/Caches/Xamarin/mtbs/builds/[myApp].iOS/6f60bd3b7d1dca37df26b69d9b9f708b/bin/iPhoneSimulator/Debug/Mono.Android.dll'.
Could not link assemblies. Reason: Error while processing references of '[myApp].iOS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Thanks!
You must have a reference to Mono.Android within your Forms / iOS project, that's why when trying to build, will try to reference java.interop. Check your solution, if there is not reference to Android in iOS project or PCL / Forms.
I updated my xamarin forms to latest xamarin form 4.0. Now after updating it I am getting following error:
Can't resolve the reference 'UIKit.UIBarButtonItem Xamarin.Forms.Platform.iOS.ToolbarItemExtensions::ToUIBarButtonItem(Xamarin.Forms.ToolbarItem,System.Boolean)', referenced from the method 'UIKit.UIBarButtonItem Naxam.Controls.Platform.iOS.TopTabbedRenderer/<>c::b__57_0(Xamarin.Forms.ToolbarItem)' in 'Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
How can I fix it?
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Microsoft.Practices.Unity.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters)
Can you please suggest for solutions
Your error message tells you everything you need to know: Microsoft.Practices.Unity, Version=4.0.0.0. You have a reference to v4.0 of Unity. Prism 7 references v5.0. You need to check your dependencies as somewhere you have a reference to the old package.
Also note that due to some changes that were made in the way that Unity ships, Prism has also made a change from referencing the Unity package to the Unity.Container package as of Prism 7.1.
I am working on a Xamarin.Forms project and i am getting the following error after i updated my Xamarin.Forms version to 2.5.0.122203.
/Users/UserName/Official/Projects/ProjectFolder/ProjectName/iOS/MTOUCH: Error MT2101: Can't resolve the reference 'UIKit.UIEdgeInsets UIKit.UIView::get_SafeAreaInsets()', referenced from the method 'System.Void Xamarin.Forms.Platform.iOS.PageRenderer::ViewSafeAreaInsetsDidChange()' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. (MT2101) (ProjectName.iOS)
How can i resolve this? I have XCode 9.2., Xamarin Studio 6.3 installed in my machine.
I tried to change the link mode to 'Don't Link' (although its not preferable) but it gives different problems.
in PCL project you can't use UIKit library, you can use this library only in IOS Project
In Visual Studio 2017 I'm getting this error when I'm trying to compile:
'CoreApplicationView' and 'CoreWindow'
The type is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.
See the screenshots.
I want to deploy this app on my Hololens. I don't need the emulator.
I installed everything, also reinstalled several times.
I followed these instructions:
https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_100
I figure someone with Visual Studio knowledge should be able to help.enter image description here