Lire en anglais

Partager via


Erreur .NET pour Android XA1031

Exemples de messages

The 'AndroidHttpClientHandlerType' property value 'Foo.Bar.HttpHander, MyApp' must derive from 'System.Net.Http.HttpMessageHandler'.
Please change the value to an assembly-qualifed type name which inherits from '{1}' or remove the property completely.
The 'AndroidHttpClientHandlerType' property value '.NET for Android.Net.AndroidClientHandler' must not derive from 'System.Net.Htt.HttpClientHandler'.
Please change the value to an assembly-qualifed type name which inherits from 'System.Net.Http.HttpMessageHandler' or remove the property completely.

Solution

Modifiez votre csproj directement et remplacez « AndroidHttpClientHandlerType » par une valeur valide.

Les valeurs valides sont disponibles à l’adresse ~/android/deploy-test/building-apps/build-properties.md#AndroidHttpClientHandlerType.