IntelliJ cannot resolve com.amazonaws characters

This may be a very simple question, but I was stuck on it for hours ...

I am trying to add amazon cloud integration to my project and I cannot get the project to recognize jar files. I'm currently just trying to instantiate an AmazonS3 client:

AmazonS3 s3 = new AmazonS3Client();

I added this to my build.gradle under the dependencies {}:

compile('com.amazonaws:aws-java-sdk:1.10.6')

When I run the gradle construct, it looks like it loads a bunch of jar files from maven, but when I go to compile my project, I get "character not found" errors.

error: cannot find symbol
        AmazonS3 s3 = new AmazonS3Client();
        ^

Gradle doesn't seem to add classes to my class path or anything like that. Is there any plugin I need? Do I need to add banks to my project manually?

thank

Edit: I am using IntelliJ Idea to manage the project.

+4
1

, , :

gradle clean
gradle cleanIdea
gradle idea
...
<import required classes>
...
gradle build

, . - .

+1

Source: https://habr.com/ru/post/1599731/


All Articles