Search code examples
androidkotlingradlemobilebackground

Android, Gradle lock file issue


Android Gradle Lock File Exception

  • I am working an Android project and i am using Kotlin for development , İ did some changes and closed the project and other day when i come and open the Project again , i got issue like this
Could not create parent directory for lock file C:\Program Files\Java\jdk-19\wrapper\dists\gradle-7.4-bin\c0gwcg53nkjbqw7r0h0umtfvt\gradle-7.4-bin.zip.lck
  • I have searched lot of site and i found nothing ,
  • There was a same question in the Stack Overflow but answers doesn’t work so i create again for,
  • If you have time and could give me some solution or ideas , i will so glad , thank your time

Solution

  • Enter this menu

    then in the SDK Location menu as shown in the screenshot you press the place where there is a red line

    When you enter this menu, select the location where all versions of Gradle are stored, then in the "Use Gradle From" field, select what is in the screenshot