Working through AWS Rekognition Exercise 2: Detect Faces (API) but having a problem at the following line. From some reason withEndpoint won't resolve?

```
AmazonRekognitionClient rekognitionClient = new AmazonRekognitionClient(credentials).withEndpoint("rekognition.us-east-1.amazonaws.com");

```

As best I can tell I've included everything necessary as build.gradle has

```
compile 'com.amazonaws:aws-android-sdk-core:2.3.9'
compile 'com.amazonaws:aws-android-sdk-s3:2.3.9'
compile 'com.amazonaws:aws-android-sdk-ddb:2.3.9'
compile 'com.amazonaws:aws-android-sdk-rekognition:2.3.9'
compile 'com.amazonaws:aws-java-sdk:+' 

```

Has anyone had success with the examples in Android Studio? I found 2 related questions but one didn't include a completion solution and the other used Maven with IntelliJ. Thanks