I have frequently been seeing this error in IntelliJ (Ultimate 2020.2.3):
Cause: cannot assign instance of java.util.Collections$EmptyList to field java.lang.StackTraceElement.moduleVersion of type java.lang.String in instance of java.lang.StackTraceElement
It doesn't seem to be able to show me any stack traces from my app. This behavior started with an upgrade some weeks back.
I tried running with --stacktrace
but it made no difference.
I had the same problem after I updated my IntelliJ to the latest (2021.2 Ultimate). I managed to fix the issue by changing the Gradle JVM from the Project SDK to the one from Gradle directory (AdoptOpenJDK 11.0.9 in my case).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With