title: ElasticSearch High-Level REST Client 7.0.1: Method `AcknowledgedResponse.fromXContent` does not exist
body: <p><strong>I'm getting an error that says this method does not exist during runtime:</strong></p>
  
  <pre><code>org.elasticsearch.action.support.master.AcknowledgedResponse.fromXContent
  </code></pre>
  
  <p><strong>When I run this code:</strong></p>
  
  <pre><code>final var request = new DeleteIndexRequest(indexName);
  return client.indices().delete(request, RequestOptions.DEFAULT);
  </code></pre>
  
  <p><strong>The relevant Maven dependency:</strong></p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.elasticsearch.client&lt;/groupId&gt;
    &lt;artifactId&gt;elasticsearch-rest-high-level-client&lt;/artifactId&gt;
    &lt;version&gt;7.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>The relevant imports:</strong></p>
  
  <pre><code>import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
  import org.elasticsearch.action.support.master.AcknowledgedResponse;
  import org.elasticsearch.client.RequestOptions;
  import org.elasticsearch.client.RestClient;
  import org.elasticsearch.client.RestHighLevelClient;
  import org.elasticsearch.client.indices.CreateIndexRequest;
  import org.elasticsearch.client.indices.CreateIndexResponse;
  import org.elasticsearch.client.indices.GetIndexRequest;
  import org.elasticsearch.common.xcontent.XContentType;
  import org.elasticsearch.index.query.QueryBuilders;
  import org.elasticsearch.search.aggregations.AggregationBuilders;
  import org.elasticsearch.search.builder.SearchSourceBuilder;
  import org.elasticsearch.search.sort.FieldSortBuilder;
  import org.elasticsearch.search.sort.SortOrder;
  </code></pre>
  
  <p><strong>Full error:</strong></p>
  
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  An attempt was made to call a method that does not exist. The attempt was made from the following location:
  
      org.elasticsearch.client.IndicesClient.delete(IndicesClient.java:97)
  
  The following method did not exist:
  
      org.elasticsearch.action.support.master.AcknowledgedResponse.fromXContent(Lorg/elasticsearch/common/xcontent/XContentParser;)Lorg/elasticsearch/action/support/master/AcknowledgedResponse;
  
  The method's class, org.elasticsearch.action.support.master.AcknowledgedResponse, is available from the following locations:
  
      jar:file:~/.m2/repository/org/elasticsearch/elasticsearch/6.4.3/elasticsearch-6.4.3.jar!/org/elasticsearch/action/support/master/AcknowledgedResponse.class
  
  It was loaded from the following location:
  
      file:~/.m2/repository/org/elasticsearch/elasticsearch/6.4.3/elasticsearch-6.4.3.jar
  
  
  Action:
  
  Correct the classpath of your application so that it contains a single, compatible version of org.elasticsearch.action.support.master.AcknowledgedResponse
  </code></pre>