Skip to content Skip to sidebar Skip to footer

Android Amazon Dynamodb Error In Basic Action

I am trying to build a simple android app that can interact with Amazon DynamoDB. I have download the latest Android Studio and also AWS mobile SDK. What I am trying to do now is s

Solution 1:

I finally fix the problem with the help of Amazon support

In customers.java, you don't have an attribute annotated with DynamoDBHashKey.Not sure how your DynamoDB table isset up. At minimum, it needs a hash key.
If CustomerID is the hash key, then you need to change of the annotation of id
from DynamoDBIndexHashKey to DynamoDBHashKey.

So it turn out I use @DynamoDBIndexHashKey instead of @DynamoDBHashKey! After correcting that it works!

Solution 2:

I had this problem today and I solved it by adding -keep public class your_class in proguard-rules.pro.

I don't think, that it is a right way to solve it, but it works for me.

http://developer.android.com/tools/help/proguard.html#configuring

Post a Comment for "Android Amazon Dynamodb Error In Basic Action"