Reputation: 343
I am developing an app in Android Studio and I would like to be able to access existing Cognito user datasets shared by an iOS version of the same app. In all of the examples I see for dealing with datasets, I see CognitoSyncManager
used to manage datasets. However, I am unable to import this class with import com.amazonaws.mobileconnectors.cognito.CognitoSyncManager
, as this generates an error which says that I cannot import cognito
. (I can import com.amazonaws.mobileconnectors.cognitoidentityprovider
, but this doesn't seem to contain CognitoSyncManager.) In case it makes a difference, I am basing my code off of this sample code. I've looked around but every example for Android I see tells me to use the import I mentioned. What is the correct way to access my datasets in Android Studio?
Upvotes: 0
Views: 580
Reputation: 343
I checked my app.gradle file for my imports after seeing Jeff Bailey's comment and noticed that I was missing the necessary Cognito import. After adding the line:
compile 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
I was able to import CognitoSyncManager and everything seems to be working now.
Upvotes: 2