title: Cannot create AmazonS3Client object
body: <p>In a Java project I have used <code>com.amazonaws:aws-java-sdk:1.6.12</code> aws dependency in the gradle. And I upgraded the aws dependency to <code>com.amazonaws:aws-java-sdk:1.11.660</code>. And I used the following way to create <code>s3client</code> object.</p>
  
  <pre><code>BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials(awsAccessKey, awsSecretKey);
  AmazonS3Client amazonS3Client = new AmazonS3Client(basicAWSCredentials,clientConfiguration);
  </code></pre>
  
  <p>And this way is not working when I upgraded the dependency. So, I have tried in the following way also, </p>
  
  <pre><code>BasicAWSCredentials creds = new BasicAWSCredentials("access_key", "secret_key"); 
  AmazonS3 s3Client = AmazonS3ClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(creds)).withRegion(Regions.US_EAST_1).build();
  </code></pre>
  
  <p>This also didn't work for me. I am getting a null reference. Is there a way to fix this issue?</p>