Passer au contenu

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?

demandé il y a un an119 vues
2 réponses
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
répondu il y a un an
EXPERT
vérifié il y a un an
0

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

Thanks

Zeev

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.