Hi!
The documentation says that AWS SDK supports Android API 10+, but two classes (https://github.com/aws/aws-sdk-android/search?utf8=✓&q=StandardCharsets) uses StandardCharset that is only available from 19 (http://developer.android.com/reference/java/nio/charset/StandardCharsets.html)
This:
StandardCharsets.UTF_8
should be replaced with:
Charset.forName("UTF-8")
@adelpuva Thanks for reporting this. We are aware of this issue and have a fix for it (as pointed out by @danielesegato). Stay tuned for the next release.
@adelpuva This is fixed in v2.2.16. For detailed changes, please refer to the change log.
Thank you!
In the last SDK (2.3.0) is also used StandardCharsets class in _CognitoUser.java_:
srpAuthResponses.put("PASSWORD_CLAIM_SIGNATURE", new String(Base64.encode(hmac), StandardCharsets.UTF_8));
Most helpful comment
This:
StandardCharsets.UTF_8should be replaced with:
Charset.forName("UTF-8")