I have recently updated my Xamarin nuget packages. The update process to the latest version of all packages for Xamarin (core), Xamarin Forms and Xamarin for iOS went really well and everything has updated to the latest version.
Unfortunately most Xamarin.Android.Support.* and Xamarin.GooglePlayServices.* packages are not updating to the latest version because they don't seem compatible with the latest Xamarin version, which does not really make any sense to me.
I have also just detected the following:
Does that mean I have to update my MonoAndroid version? If so, how do I do that please?
Any suggestions?
Thanks.
I simply needed to update / install the latest Android SDKs using the Android SDK Manager. After installing API 24 and 25, all nuget packages updated successfully.
Related
when trying to install the OneSignal 4.x SDK to the shared project part of my pcs project I get the following error:
OneSignalSDK.Xamarin 4.1.0 with .NETPortable,Version=v4.5,Profile=Profile259.
Package OneSignalSDK.Xamarin 4.1.0 is not compatible with portable45-net45+win8+wp8+wpa81 (.NETPortable,Version=v4.5,Profile=Profile259). Package OneSignalSDK.Xamarin 4.1.0 supports:
monoandroid41 (MonoAndroid,Version=v4.1)
netstandard2.0 (.NETStandard,Version=v2.0)
xamarinios (Xamarin.iOS,Version=v0.0)
I tried almost every other Profile with the same result. I cant get this to install.
The SDK installs fine in the iOS and Android projects. And the former sdk 3.x also installed fine.
Any help on this would be great!
Thanks
Thomas
I'm building a new Xamarin Forms 5 app using VS 2022 17.1.1. Everything in the project appears to be up-to-date.
I've been working on this project for a while and never had this issue. All of a sudden it just appeared today. The last action I took was to install the Plugin.InAppBilling package, thought the package in question is not used by the Plugin.InAppBilling package.
The error is as follows:
All I can see is that the shared project is using System.Numerics.Vectors version 4.5.0 and it seems to be dependency of Xamarin.Essentials which is version 1.7.1 in my project.
However, the version number of System.Numerics.Vectors seems to be 2.0.5.0 in the Android and iOS projects.
I found the GitHub issue here but I'm not seeing any clear resolution to this issue. Even though it appears to be a warning, in my case, I can no longer run the app because I keep getting deployment error to the Android Emulator or actual device. It simply refuses to deploy my app to the device/emulator. So, it's really NOT a warning in my case. It's a show-stopper. I'm a bit surprised about how lightly the Xamarin Essentials folks seem to have taken this issue on GitHub.
Has anyone actually resolved this issue? If so, what's the solution?
BTW, in my case both the Android and the iOS projects are throwing this error/warning and both use System.Numberics.Vectors version 2.0.5.0 even though the shared project has version 4.5.0 installed as a dependency undre Xamarin Esssentials.
I'd appreciate some pointers on how to make this issue disappear. Thanks.
At first, you can try to update the Xamarin.Essentials package in the Android and IOS project with the nuget package manager to the version 1.7.1.
And then, if the error is still here, you can right click the reference and remove the reference of the System.Numberics.Vectors 2.0.5.0 both in your Android and IOS project. Then download the System.Numberics.Vectors 4.5.0 in the nuget package manager both too.
I updated Xamarin Forms to 3.4.0 on a Xamarin Forms Android project that was working fine. Now I am getting this error when attempting to build. The error is "invalid android support library configuration" and when I look at my Package Console I see this...
...saying that some of my Xamarin.Android.Support.xxx packages need a downgraded package for compatibility. Problems is, my project does not have any of this packages as you can see by my "Packages" folder here...
What am I missing or doing wrong?
This can happen if you update ALL of the nuget packages in a Xamarin.Forms Android project.
Xamarin.Forms has specific dependencies on specific versions of the Xamarin.Android.Support libraries, and if you update ALL of the nuget packages in the Android project, then the support libraries may update to versions later than the versions that the new Xamarin.Forms version supports.
At this point I would uninstall Xamarin.Forms package from the Android project and also uninstall all of the dependent support library packages, which are listed here under "Dependencies": https://www.nuget.org/packages/Xamarin.Forms/
So in the Android project, uninstall the following nugets:
Xamarin.Forms
Xamarin.Android.Support.Design
Xamarin.Android.Support.v4
Xamarin.Android.Support.v7.AppCompat
Xamarin.Android.Support.v7.CardView
Xamarin.Android.Support.v7.MediaRouter
Once uninstalled, just re-install Xamarin.Forms and the correct versions of the support packages should be re-installed.
In the future, just update the Xamarin.Forms packages and that will automatically update the support library packages if necessary, and will not update the support libraries if the newer support library versions are not supported by the updated Xamarin.Forms version.
Updating Xamarin.Forms and all *.Support.* libraries to the latest version worked for me.
You have a version compatibility problem, if you have updated some packages recently, you must go to the package manager "NuGet/Update" you will find all Xamarin packages need update.
while updating my NuGet packages I am getting this issue
Unable to resolve dependencies. 'Xamarin.Android.Support.v4 25.4.0-rc1' is not compatible with 'Xamarin.Forms 2.3.5.253-pre5 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'.
Can any one guide me for this issue
Thank You
You should not update Support libraries by your self. Instead update only Xamarin.Forms package and it updates his dependencies automatically.
Now, try to uninstall all Support libraries and Xamarin.Forms, install Xamarin.Forms again and it would add all dependencies needed.
As a reference, take a look at this.
I ran into similar the other week (blindly clicked update and it all went wrong), my solution was to downgrade Xamarin Android Support (I'm on 23.3.0) although I'm only using Xamarin Forms 2.3.4.247 I believe the issues is common.
From memory this was a bit of a pain and had to actually remove them one by one and add them back in (maybe take a screenshot of what packages are installed so you don't forget!), but 23.3.0 was the magic support version.
HTH
Solution 1.
Update xamarin forms to latest version.
Xamarin.Android.Support.v4 25.4.0-rc1 is having some dependence on latest xamarin.forms
Solution 2.
Install older version of Xamarin.Android.Support.v4 .
Check the version dependence before installing and ensure that older version do not have dependence on xamarin forms.
I get the error after updating Xamarin in Visual Studio which I had to do after a git pull. I have also applied the Xamarin updates in Xamarin Studio on my Mac build host. (Xamarin Studio > Check for updates).
The iOS SDK version '9.2' is not installed, and no newer version was found.
You can also modify the SDK version of your iOS project from visual studio in order to support older SDKs where you cant update the XCode or SDKs.
Open iOS project properties from Visual Studio.
Open iOS.Build tab
Set SDK version to 'Default'
Set Link Behaviour to 'Link Framework SDKs Only'
Save and Run the project
XCode needed updating to get the latest SDK.
The App Store told me there were updates, and mentioned SDK 9.2 in the summary so I updated.
It appears the cause was a commit on the csproj that bumped the SDK.
You can manually edit .csproj file and replace <MtouchSdkVersion>9.2</MtouchSdkVersion> with the version you actually have on your mac. This can be a solution when you use an old OS which does not offer updates for XCode.