I use Gradle 7.0 with Kotlin DSL and IntelliJ IDEA 2019.3.3 (Ultimate Edition) and openjdk15 on Linux.
When I want to import my Gradle project I get the following error message:
> Task :prepareKotlinBuildScriptModel UP-TO-DATE
FAILURE: Build failed with an exception.
* What went wrong:
Failed to notify build listener.
> 'java.lang.String org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
When I run the same thing from a terminal without IDEA, it works just fine. When I change the version to 6.8.1 it also works just fine.
How do you fix this error or is this a known problem and I have to wait for another release of either tool?
I had a similar issue in the Intellij-IDEA 2017.3 on my Mac. This was resolved when I try IntelliJ-IDEA 2021.2(Community Edition).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.