Cannot build an Android app with Xamarin

Aurélien Bouillon 26 Reputation points
2020-12-12T10:30:02.557+00:00

Hi, here is what error is writen when building the app :

1>------ Début de la génération : Projet : Projet CLAC, Configuration : Debug Any CPU ------
C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -no-boot-anim -avd pixel_2_pie_9_0_-_api_28 -prop monodroid.avdname=pixel_2_pie_9_0_-_api_28
Impossible de démarrer l'émulateur pixel_2_pie_9_0_-_api_28.
1>C:\Microsoft\Xamarin\NuGet\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets(232,5): warning : Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1)
1>C:\Microsoft\Xamarin\NuGet\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets(238,5): warning : Xamarin.Forms recommends TargetPlatformVersion >= 10.0.17763.0 (current project is -1)
Vérifications à l'exécution effectuées
1>Génération du projet "Projet CLAC.csproj" terminée -- ÉCHEC.
La génération a été annulée.

I don't understand why it doesn't work.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,284 questions
{count} votes

Accepted answer
  1. Alessandro Caliaro 4,181 Reputation points
    2020-12-12T11:22:28.46+00:00

    Do you have set the Target platform in the android project properties? It seems it is not defined


1 additional answer

Sort by: Most helpful
  1. Alessandro Caliaro 4,181 Reputation points
    2020-12-12T11:43:22.733+00:00

    47520-immagine-2020-12-12-124440.png

    0 comments No comments