跳至內容

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?

已提問 1 年前檢視次數 115 次
2 個答案
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!

專家
已回答 1 年前
專家
已審閱 1 年前
0

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

Thanks

Zeev

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。