Gradle can't find AWS libraries

0

I'm new to using the AWS SDK and SQS both. According to the docs, I added the following to my build.gradle.

// AWS  
implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.X')  
implementation 'com.amazonaws:aws-java-sdk-sqs'  

But when I re-import in IntelliJ, I get the following errors:

Could not find com.amazonaws:aws-java-sdk-bom:1.11.X.
Required by:
project :

Possible solution:

Could not find com.amazonaws:aws-java-sdk-sqs:.
Required by:
project :

Possible solution:

Here's my dependencies section. I think MavenCentral should be enough.

repositories {
mavenCentral()
// for heavyweight software dependencies
flatDir {
dirs 'libs'
}
// Spock snapshots are available from the Sonatype OSS snapshot repository
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

Please hit me up with any feedback.

Thanks.

Edited by: lexaholic on Oct 12, 2020 8:34 AM

已提问 4 年前1676 查看次数
1 回答
0

I simply changed it to:
implementation 'com.amazonaws:aws-java-sdk-sqs:1.11.+'
and it appears to be working fine.

已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则