DynamoDbMapperException: No method annotated?

前端 未结 1 675
没有蜡笔的小新
没有蜡笔的小新 2021-01-23 07:36

In my android app, I use DynamoDb. I create a class, which is mapped with a table of database. App runs normally in debug. But if I export apk and run app, I get the DynamoDbMap

相关标签:
1条回答
  • 2021-01-23 08:28

    Are you using a DynamoDB table?

    You need to have a hash key for the class, you should annotate the field with @DynamoDBHashKey, do you accidentally annotated it as @DynamoDBIndexHashKey? If so, you should change it back.

    A similar reference can be found here

    Android Amazon DynamoDb error in basic action

    Edit: Try chaning

    -keep public class com.example.myclass
    

    to

    -keep public class com.example.myclass {
        *;
    }
    
    0 讨论(0)
提交回复
热议问题