Xamarin Android - Build failed after migration to AndroidX - xamarin.android

I'm facing a build issue after migration to AndroidX. I encountered following error when build android project:
Error NU1107 Version conflict detected for Xamarin.Android.Support.Compat. Install/reference Xamarin.Android.Support.Compat 28.0.0.1 directly to project WhiteLabel.Mobile.App.Android to resolve this issue.
Project.Mobile.App.Android -> Xamarin.Essentials 1.2.0 -> Xamarin.Android.Support.Compat (>= 28.0.0.1)
Project.Mobile.App.Android -> CarouselView.FormsPlugin 5.2.0 -> Xamarin.Android.Support.v4 25.4.0.2 -> Xamarin.Android.Support.Compat (= 25.4.0.2). Project.Mobile.App.Android C:\mprojects\mproject-xamarin\Project.Mobile.App\Project.Mobile.App.Android\Project.Mobile.App.Android.csproj
I tried to resolve this with installing latest stable version of Xamarin.Android.Support.Compat package with version 28.0.0.3. However, install failed with rolling back package changes in xamarin android project. As of now, I still have no clues on how to fix this, does anyone has any ideas?
Microsoft Visual Studio Enterprise 2019 version 16.6.2
Compile using Android version (Target Framework): Android 10.0(Q)
Minimum Android version: Android 7 (API level 24 - Nougat)
Target Android version: Android 10.0 (API Level 29 - Q)
Xamarin.Forms: 4.6.0.800
Xamarin.Android Sdk: 10.3.1.4
Xamarin.iOS: 13.18.2.1

You could search the Xamarin.Android.Support.Compat nuget,then could see its Dependencies.You could try to install the dependencies it needs according different mono android versions first,then install the Xamarin.Android.Support.Compat nuget.

Related

ios project shows errors after installing SkeletonView package

As soon as I add SkeletonView package with package Manager, xcode started showing these crazy errors. I installed 1.9.0 version of SkeletonView (selected exact version on package manager)
what should I do now?

32Feet.net Compatibility with Xamarin Android Watch

When I install 32feet to Xamarian for Android, the follow errors occur:
Error NU1202 Package 32feet.NET 3.5.0 is not compatible with monoandroid12.0 (MonoAndroid,Version=v12.0). Package 32feet.NET 3.5.0 supports:
net (.NETFramework,Version=v0.0)
net-cf (.NETFramework,Version=v0.0,Profile=CompactFramework)
How should I resolve this?
The package InTheHand.Net.Bluetooth is the current version and supports Android. So don't use 32Feet.net package anymore. Use package InTheHand.Net.Bluetooth instead.

Swift Package Manager could not be resolved all libraries, project

This error always happens whenever I add a new Package via Swift Package Manager in Xcode:
Cannot fetch library
I've already configured my GitHub Auth Token setting in Xcode and registered my GitHub account.
My macOS version is Monterey 12.1, my Xcode version is 13.1, my command-line tools are 13.1, and I'm using an M1 chipset Mac.
Configure Dependency Rule 📏
tl;dr
I encountered this issue today and managed to resolve the Package by changing the Dependency Rule from Branch -> master to Up to Next Major Version and checking their latest Release versions from GitHub.
Other Dependency Rules
We can also try changing from Branch to other rules depending on our application:
Up to Next Major Version: Useful for getting the latest major stable release.
Up to Next Minor Version: Useful for getting the very latest releases.
Range of Versions: Useful for resolving dependencies specific to a particular dependency chain (careful configuration).
Exact Version: Useful for pinning a version to a particular working release, or fork.
Commit: Useful for pinning a Package to a commit rather than a release version.
Xcode SPM "Add Package" prompt
I tried to simulate your problem, Xcode and command-line version are the same. I was able to add SnapKit into my project without problems. Try this workaround:
Project -> Package Dependencies -> + -> paste the link: https://github.com/SnapKit/SnapKit -> Dependency rule set to Up To Next Major -> Add Package.
It should add a new package. Currently in version 5.0.1 If you have still a problem, just click Add Anyway, build the project and send a screenshot of the error.

Universal Windows Project, VS17, Cannot Install Microsoft.Azure.Devices.Client IOT SDK

I'm getting the following failure report when attempting to install version 1.31.2 in VS17 using Nuget.
Error NU1202 Package Microsoft.Azure.Devices.Client 1.31.2 is not compatible with uap10.0.15063 (UAP,Version=v10.0.15063) / win10-arm [and other Windows 10 versions]. Package Microsoft.Azure.Devices.Client 1.31.2 supports:
net451 (.NETFramework,Version=v4.5.1)
net472 (.NETFramework,Version=v4.7.2)
netstandard2.0 (.NETStandard,Version=v2.0)
netstandard2.1 (.NETStandard,Version=v2.1)
Any advice on how to resolve this would be appreciated. Do I need to use and earlier version?
You will need to meet the OS and hardware compatibility as described to install and use Microsoft.Azure.Devices.Client :
https://github.com/Azure/azure-iot-sdk-csharp#os-platforms-and-hardware-compatibility
See also: Prepare your development environment
"Visual Studio is not required to build the SDK. This may not be sufficient to run certain samples that require Visual Studio and other SDKs or frameworks installed on your machine."

Visual Studio Mac extensions mpack failure

Visual Studio Mac Extensions mpack file installation failed with below error
Error:
The add-in Mytemplate could not be updated because some of its dependencies missing or not compatible
required:Mono.Develop.Core 8.2.5 , found : MonoDevelop.Core 8.1.2
required:Mono.Develop.Ide 8.2.5 , found : MonoDevelop.Ide8.1.2
required:Mono.Develop.Core 8.2.5 and required:Mono.Develop.Ide
Is there some mistakes here, should them be MonoDevelop.Core 8.2.5 and MonoDevelop.Ide?
The add-in Mytemplate could not be updated because some of its
dependencies missing or not compatible
Please check this document, I guess the reason why you get that issue is the extension you want to install is for MonoDevelop 8.2.5 designed by the add-in maker while the version in your machine is 8.1.2.
Check this monodevelop add-in repository and you can find the extensions there target different versions of MonoDevelop. So for your issue I think you can try to get the Mytemplate extension for 8.1.2, or you can choose to update your VS for MAC and the MonoDevelop in your machine to latest version.

Resources