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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ