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

posta 4 anni fa1676 visualizzazioni
1 Risposta
0

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

con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande