A problem with gradle and import

Answered

I have an error like this, making me couldn't import the package correctly,

but if I run gradle build, it build successful, 

In the build.gradle, it has the dependencies of the package I need.

can you help me solve this problem?, Thank you so much

0
4 comments

What IDE version do you use? Are there any related errors in the logs? See https://intellij-support.jetbrains.com/hc/en-us/articles/207241085.

Please also click the Run with --stacktrace option and attach the output from the Gradle build.

You can share files privately via https://uploads.jetbrains.com or create a ticket at https://intellij-support.jetbrains.com/hc/requests/new.

0

Thank you for your reply,

The version is 2023.1.3

I have uploaded my project and the log, Upload id: 2023_07_10_ud7NyM1dbLvkqSZRyQAWdo (files: idea-logs-20230711-0043031430667205868425148.zip, assignment-ii.zip)

this is the output after clicking the Run with --stacktrace option

 

0

This project is missing Gradle wrapper file, so IDE is likely picking a wrong Gradle version that is not compatible.

It looks like Gradle 7.4.2 works fine:

1

Oh, it can work now! Thank you for your help!

0

Please sign in to leave a comment.