Yes, in IntelliJ everything works fine, and I don’t get that weird error message.
Both gradle help
and gradle build
work without any problems too.
Aaand, since I don’t know exactly what causes this, I don’t think I’ll be able to create an example project for this. Is there any other way you can help?