我正在使用AWS開發工具包來更新DynamoDB表。我正在關注AWS的this文檔示例。但是,無法找到類表。這也適用於什麼應該是表的方法,如getTable(),updateTable(),waitForActive()等AWS開發工具包找不到類
我gradle這個編譯如下
dependencies {
compile 'com.amazonaws:aws-android-sdk-core:2.2.+'
compile 'com.amazonaws:aws-android-sdk-s3:2.2.+'
compile 'com.amazonaws:aws-android-sdk-ddb:2.2.+'
compile 'com.amazonaws:aws-android-sdk-sdb:2.2.+'
compile 'com.amazonaws:aws-android-sdk-sns:2.2.+'
compile 'com.amazonaws:aws-android-sdk-ddb-mapper:2.2.+'
compile 'com.amazonaws:aws-android-sdk-apigateway-core:2.2.+'
}
爲每setup
AWS documentation指示類表來源於: com.amazonaws.services.dynamodbv2.util.Tables。 導入這個不起作用。
小心分享引發錯誤的實際代碼? –
你也許可以看看這個示例:https://github.com/awslabs/aws-sdk-android-samples/tree/master/DynamoDBMapper_UserPreference_Cognito –