title: How to solve an errror: java.lang.NoSuchFieldError: INSTANCE
body: <p>When I run the following code:</p>
  
  <pre><code>import org.apache.http.HttpResponse;
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.HttpClientBuilder;
      public static void main(String[] args) {
          HttpClient client = HttpClientBuilder.create().build();
          HttpGet request = new HttpGet("https://www.google.com/?q=java");
          try {
              HttpResponse response = client.execute(request);
              System.out.println(response.getStatusLine());
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE at
    org.apache.http.conn.ssl.SSLConnectionSocketFactory.(SSLConnectionSocketFactory.java:144)
      at
    org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
      at HttpExample.main(HttpExample.java:12)</p>
  </blockquote>