When developing gradle plugin in Kotlin, IntelliJ ...
# announcements
r
When developing gradle plugin in Kotlin, IntelliJ gives me such errors:
Cannot access class '<http://java.io|java.io>.File'. Check your module classpath for missing or conflicting dependencies
or
Cannot access class 'java.util.concurrent.Callable'. Check your module classpath for missing or conflicting dependencies
But there are no errors when building this project from Gradle command. Any ideas what can be wrong?
t
Do you use separate project for Gradle plugin?
r
a submodule
t
I use separate project, to simplify testing IDEA works fine in such configuration
For compiler plugin separate project even more required
r
I'll probably just ignore this problem. Fortunately I don't work a lot with this part of the project.
🧌 1
a
@Robert Jaros I faced similar issue when I installed JDK 16 and later colleagues had a similar issue when Android Studio started requiring JDK 11+. I think everyone resolved this issue when we used exactly JDK 11.
👍 1