Right-click on My Computer - Properties - Advanced System Settings - Environment Variables - System Variables.
Here you add the JAVA_HOME variable
and value (JDK path)
And also in this path C:\Users\Your user\.gradle\wrapper\dists
remove gradle 5.1.1-bin (you may have a different version, the essence does not change)
And everything works great.
Video (ENG):
Here you add the JAVA_HOME variable
and value (JDK path)
And also in this path C:\Users\Your user\.gradle\wrapper\dists
remove gradle 5.1.1-bin (you may have a different version, the essence does not change)
And everything works great.
Video (ENG):