CloseableHttpClient closeableHttpClient = HttpClients.custom()...build();
ApacheHttpTransport apacheHttpTransport = new ApacheHttpTransport(closeableHttpClient);
AndroidEnterprise enterpriseClient = new AndroidEnterprise.Builder(apacheHttpTransport, ...);
AndroidEnterprise.Products.List listProducts = enterpriseClient.products().list(enterpriseId);
The above piece of code throws the following exception.
java.lang.UnsupportedOperationException
at org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:210)
at com.google.api.client.http.apache.ApacheHttpTransport.(ApacheHttpTransport.java:129)
CloseableHttpClient closeableHttpClient = HttpClients.custom()...build();
ApacheHttpTransport apacheHttpTransport = new ApacheHttpTransport(closeableHttpClient);
AndroidEnterprise enterpriseClient = new AndroidEnterprise.Builder(apacheHttpTransport, ...);
AndroidEnterprise.Products.List listProducts = enterpriseClient.products().list(enterpriseId);
The above piece of code throws the following exception.
java.lang.UnsupportedOperationException
at org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:210)
at com.google.api.client.http.apache.ApacheHttpTransport.(ApacheHttpTransport.java:129)