Did you mean the
var httpClient = new HttpClient();
is null on the Android? You can try to use HttpClientFactory instead of newing. In addition, you can check the official document about the Connect to local web services from Android emulators.