0

I am using Android Studio 1.5 and trying to build an app which uses AWS cognito for authentication. I am in the initial stages of the build and referred this AWS getting started guide.

When I am trying to import some of the AWS classes, I am getting the 'can't resolve amazon' error message in Android studio.

The libraries/classes I am trying to import are -

import com.amazon.identity.auth.device.AuthError;
import com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager;
import com.amazon.identity.auth.device.authorization.api.AuthorizationListener;
import com.amazon.identity.auth.device.authorization.api.AuthzConstants;
import com.amazon.identity.auth.device.shared.APIListener;

I referred the below earlier questions to resolve the issue, but still no progress..

Android Studio - Importing external Library/Jar

Using Amazon Web Service SDK for Android in Android Studio

Community
  • 1
  • 1
Arvind
  • 443
  • 1
  • 5
  • 11

1 Answers1

1

Those classes belong to Login with Amazon library. Please download the sdk LoginWithAmazonSDKForAndroid.zip. Extract it and manually copy the login-with-amazon-sdk.jar under the lib directory to your project.

Yangfan
  • 1,866
  • 1
  • 11
  • 13