OK so I resolved it.
I searched for all occurences of “gradle-wrapper.properties” file on my disk and I changed distributionUrl property everywhere to version gradle-6.6-all.zip (I found 4 such files on my disk).
After every file I changed I run “gradlew” in corresponding directory to update.
Also I have added path to my gradlew.bat file to the system PATH and restarted PC.
Now it works.