Xamarin: Unable to open the project with Method not found: System.__CanonEnumerator.NameAndPassword - xamarin

I am trying to open a project pulled from the SourceTree and opened up with Xamarin. It was a Xamarin.Form project. Somehow I received this error:
Does anybody come across this problem.

Install latest xamarin fixed my own problem

Related

Couldn't load Flutter project in Xcode

This Question can be repeated, but i have tried with all solutions available on web.
I'm trying to open flutter project in xcode by opening Runner.xcworkspace file from ios folder,
but facing following issue.
Couldn't load Runner.xcodeproj
Couldn't load Pods.xcodeproj
P.S have tried installing Pods
P.S Have multiple build flavors
EDIT
Today is i got the error popup with following message
The project at '/Users/nikhilsawant/StudioProjects/zingoy-flutter/ios/Runner.xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode
Anyone have any idea how can i fix this without update xcode, As i don't have any free space.

Getting Attribute "buttonSize" already defined with incompatible format error after adding Firebase Analytics Nuget

I am trying to enable Firebase Analytics in my Xamarin Forms project. The iOS version goes very well, however, when adding nuget packages in Android project I am getting error while building my project. I am following Using Firebase Analytics in your Xamarin.Forms app to enable firebase in my app. I have added
Xamarin.FireBase.Analytics and Xamarin.FireBase.Analytics.Impl
Nugets. while running my app I am getting weired error attached in the screenshot. Clicking any of those errors takes me to a file "values.xml". In fact there are two identical values.xml files (these files are not located in my android project, but opens when clicking on the errors)
After switch on aapt2 for build the issue was solved for me
i had the same issue with the new 116+ versions.. downgrade to version 71.xx and it solves the problem

failed to resolve ObjCRuntime.TrampolineBlockBase

I am implementing google Admob in my Xamarin.Forms application. My android project is working perfectly but my iOS project fails to build. when I build the project it shows
Failed to resolve "ObjCRuntime.TrampolineBlockBase" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"
and it also say I am missing few files.
I tried to download the mobile sdk framework for ios from https://developers.google.com/admob/ios/quick-start#cocoapods and then add to the project but I can't seem to add this framework to references.
Any kind of help is really helpful.
I had this issue on App Center. Resolved by upgrading SDK and Xcode versions in build configuration options
I was able to resolve the issue from upgrading the visual studio 2019 to 16.4.5 and downgrading the Xamarin.Firebase.iOS.AdMob from 7.47.0.1 to 7.27.0.3
After doing that I restarted Visual Studio and build the project it successfully built.
Also, I referred to this link for help
Edit:
In short, Visual studio installed the new appropriate mono framework for ios which basically solved the issue here.
In case anyone else runs into this issue, I got this issue after adding the Maps sdk to iOS. I had to upgrade Xamarin.iOS from 13.6.0.12 to 13.10.0.21 to resolve the issue.

Xamarin: Try to run the Project. I'm new bee for xamarin and want to run my xamarin ios project

I want to run the xamarin ios project and maybe its native code for ios xamarin.
I install visual studio for mac and open the project, then add missing packages.
But in One package Zxing.Mobile I get the error (I can't find relative package) So I comment related code and try to run the project. So I get the few errors and here I attached that snap
So please help me I'm iOS native developer and want to run this xamarin project.
This error generally occurs when a dependency of your nuget package is having an issue and can't be linked. You can try installing the dependency nuget package manually and that should resolve it.

Xamarin Google API client does not exist?

I'm new to Xamarin unfortunately. I've been trying to create a simple page with a map on it using the Xamarin.Forms.Maps package, but upon building I run into about 92 errors all describing that various packages could not be found:
error: package com.google.android.gms.common.api.GoogleApiClient does not exist
error: package com.google.android.gms.common does not exist
error: package com.google.android.gms.maps.GoogleMap does not exist
error: package com.google.android.gms.maps does not exist
error: package com.google.android.gms.tasks does not exist
...and many others. My solution is a Cross-Platform Xamarin.Forms blank mobile app using a .NET class library which I have nothing but the NETStandard.Library, Xamarin.Forms and Xamarin.Forms.Maps packages installed on. I thought that I had set it up correctly according to the official Microsoft documentation, but I still get all these weird errors and searching online for a solution has not been much help. Can someone give me assistance? Let me know if I need to clarify anything.
I had exactly the same issue with the same 92 errors after upgrading my version of Xamarin.Forms to V3.0.0.561731 and installing the latest version of Xamarin.Forms.Maps in Visual Studio Community 2017.
I solved the issue by adding "Google Play Services" via the Android SDK Manager. The item can be found on the "Tools" tab of the Android SDK listed under "Extras".
Note: I had to come out of Visual Studio, and rebuild my solution, and it worked.
Make sure you have installed the nuget on your android project
Xamarin.GooglePlayServices.Base
and
Xamarin.GooglePlayServices.Maps
It's a google maps API requisite.
You can see an entire explanation on official documentation on this link: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/maps-api#google-maps-api-prerequisites
I had the same error.
For me the solution was to switch to the Visual Studio Preview Channel. I'm now on Version 15.8.0 Preview 2 and the error has gone away.
To get the Preview Channel you can download it here https://www.visualstudio.com/de/vs/preview/
Had this behavior but was because I only included Xamarin.Forms.Maps in PCL project. As soon as I added Xamarin.Forms.Maps also into Android (specially here) and iOS projects all compiled fine.

Resources