Leer en inglés

Compartir a través de


Error de .NET para Android XA1031

Mensajes de ejemplo

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.

Solución

Edite su csproj directamente y cambie "AndroidHttpClientHandlerType" a un valor válido.

Los valores válidos se pueden encontrar en ~/android/deploy-test/building-apps/build-properties.md#AndroidHttpClientHandlerType.