MvvmCross 6.2.1 Incompatible target framework - xamarin

I've started a new Xamarin project using MvvmCross 6.2.1 which requires netstandard 2.0 or better. However attempting to refernce my PCL project from my iOS project I get an error message claiming that the PCL project has an Incompatible target framework: .NETCoreApp, version=v2.1. How do I solve this problem?

Related

Android Studio app.gradle error in appcompat

Dependencies using groupId com.android.support and androidx.* can not be combined but found
IdeMavenCoordinates{myGroupId='com.android.support',
myArtifactId='support-vector-drawable', myVersion='26.1.0',
myPacking='aar', myClassifier='null'}and
IdeMavenCoordinates{myGroupId='androidx.asynclayoutinflater',
myArtifactId='asynclayoutinflater', myVersion='1.0.0',
myPacking='aar', myClassifier='null'}
incompatible dependencies
There seems to be a conflict between the deprecated appcompat library and Firebase
Solved the same issue by migrating the old and deprecated appcompat support library to the new androidx. Official docs here: https://developer.android.com/jetpack/androidx/migrate
I've faced the same error for a few days and only achieve success after migrating all project to SDK 28.
Update all project dependencies
File -> Project Structure
With Android Studio 3.2 and higher, go to menu Refactor -> Migrate to
AndroidX
It's worth mentioning without Migrating to AndroidX, the Gradle has been synced successfully, but when running the project I've got this error
Manifest merger failed: Attribute application#appComponentFactory...

Errors when referenace android project to ui test project Xamarin

I have an intruder problem. I have created a xamarin form solution with monoandroid 8.1 and .net standard 2.0 and everything was going fine, but once I added UI test project and add android project as reference I saw 4 errors and when I built it build was successful but the error was still visible.
When I build it in app center it fails and shows me these 4 errors:
errors list
Log from app center
2018-06-11T10:26:21.6746020Z NU1201: Project UserLogin.Android is not
compatible with net471 (.NETFramework,Version=v4.7.1). Project
UserLogin.Android supports: monoandroid81 (MonoAndroid,Version=v8.1)
I solved this problem after update visual studio to latest version

AccessibilityServiceInfoCompat error in Xamarin Forms Android Build

I had created a new Xamarin Forms project (Sept 2017), but when got around to running / building the droid platform I am getting this build error -
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; (XYZ.Droid)
In packages, update the Xamarin.Android.Support packages to the latest version.

Can not compile after migrating unified api in xamarin forms

We have migrated the xamarin forms project to unified api.
But we have the strange compile error like this:
Could not AOT the assembly '.../iOS/obj/iPhone/Debug/mtouch-cache/Build/Xamarin.Forms.Labs.dll
So I changed the settings in iOS project's options.
In ios Build Tab of Project options(iOS) I changed the "don't link" to "Link all assemblies".
But the app is crashed when it is started.
xamarin version is 5.7.1(build 17).
xamarin forms's version is 1.3.5.6337.
xamarin forms labs's version is 1.0.1.5.
Please help me if you have the experience with this error.
Replace Xamarin.Forms.Labs with XLabs.Forms.
There has been a major refactoring on how the XLabs project is structured so your existing project based on the 1.x.x will break. The reason for the refactoring was simple; separate functionality that does not depend on Xamarin.Forms into different assemblies. This allows the use of functionality like IoC, Serialization and even platform specific services without referencing XF.
To upgrade:
Uninstall any existing Xamarin.Forms.Labs packages from your
project.
Install XLabs.Forms package to your projects (PCL, iOS, Droid & WP). This will update Xamarin.Forms to the latest stable release (1.4.x)
Refactor code to reference the correct namespaces.

Failed to resolve assembly "Xamarin.Forms.Platform.iOS" error after adding Xamarin Forms Labs

I added Xamarin Forms Labs 1.2.O from NuGet to the iOS project. The same project also references Xamarin Forms dll, v1.3.0.6292.
After adding the Xamarin labs reference and updating AppDelegate to inherit from XFormsApplicationDelegate, I keep getting this compile time error:
MTOUCHTASK: error MT2002: Failed to resolve assembly: 'Xamarin.Forms.Platform.iOS, Version=1.2.3.0 ...
How do I resolve this issue?
When using Xamarin.Forms 1.3 you needed to update to the latest pre-release of Xamarin.Labs which is Xamarin.Forms.Labs 1.2.1-pre2.
Try updating to that to see if it works.

Resources