I’m a beginner so I’m sorry if this is a stupid problem.
I tried to run gradlew genSource
and got this error:
I had to change the java version from 8 to 16 early and I’m still not sure if there is some path that need to be adjusted and this is related.
I’m using intellij IDEA.
1 Like
What version of Gradle is your project using? Gradle does not support running in Java 16 until version 7+.
I’m using Gradle 7.0.2
if you face this type error then please change your JDK I think your JDK is corrupted
I can face same issue
I can download JDK 11.0.16
then set path in environment variable
setting->environment variable->system variable ->Path->add here your JDK path like this
C:\Program Files\Java\jdk-11.0.16\bin
and it’s work