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?

ZeevM
asked a month ago32 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!

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
0

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

Thanks

Zeev

ZeevM
answered a month 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.

Guidelines for Answering Questions