I have upgraded the jdk version to 20. After doing that I have installed the latest version of Android from the website which is Android Studio Flamingo. But while performing the Gradle run it is showing:
Could not create parent directory for lock file C:\Program Files\Java\jdk-20\wrapper\dists\gradle-7.4-bin\c0gwcg53nkjbqw7r0h0umtfvt\gradle-7.4-bin.zip.lck