Xamarin Error Incompatible Framework Error - Can NuGet Help Me?

I am encoding a Xamarin application and I want to add MonoDroidToolkit as a project for my current solution. I did it right and my solution is built.

Now I need to add a link to my application in the MonoDroidToolkit project.

I selected the option "Change links" in the "Links" folder. Then I will go to the Projects tab to select a project. The project is listed there, however I cannot select the project because of this description:

com.refractored.monodroidtoolkit (incompatible target structure: MonoAndroid, Version = v4.2)

Here is a screenshot of the description: com.refractored.monodroidtoolkit (incompatible target framework: MonoAndroid, Version = v4.2)

I changed the target structure of each project to the same thing, and also automatically, no matter what target structure I choose, I can’t add a link because of the above description.

I performed a Mono.Android link check in each of my projects. In my current project, the description is support for version 4.1, and MonoDroidToolkit is support for version 4.2.

This is problem? How can I easily update my 4.1 Support link to be the last? Can I get NuGet to do this or is there another way to update all my links?

+6
source share
2 answers

In the same solution, an Android project can only refer to another project if its target structure is the same version or a lower version.

You can change the version of the landing page of the project by right-clicking the project in the Solution window, selecting Options, and then selecting Build. At the top is the Target Framework for this project. If you change this to Android 4.2 (Jelly Bean), you should be able to reference the MonoDroidToolkit project.

The easiest way to use MonoDroidToolkit is to install it from NuGet .

+5
source

Open Xamarin Studio and click Check for Updates. This should update the version of Monodroid

0
source

Source: https://habr.com/ru/post/976342/


All Articles