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

asked 4 years ago1648 views
1 Answer
0

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

answered 4 years 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