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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠