Skip to content

Java ssm sdk min Android version

0

I am trying to access the parameters store from an android terminal. I am using the latest awssdk: implementation platform('software.amazon.awssdk:bom:2.27.14') implementation 'software.amazon.awssdk:ssm'

When running on Android 5, I get the following error: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/Duration;

In my gradle file I am setting MinSdkVersion to 21 (meaning Android 5) I saw that awssdk requires MinSdkversion 26 (Android 8) Any way I can overcome this constraint?

asked a year ago112 views
2 Answers
0

Hi Zeev!

The AWS SDK for Java requires a minimum Android API level of 26 (Android 8) due to dependencies on newer Java classes like java.time.Duration. Unfortunately, this constraint can't be easily bypassed. A potential workaround is to use an older version of the AWS SDK compatible with lower Android versions or directly call AWS REST APIs instead.

I’m here to help!

EXPERT
answered a year ago
EXPERT
reviewed a year ago
0

Thanks Vitor! Does AWS provides REST APIs to connect to the parameters store directly?

Thanks

Zeev

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.