I try to change minSdkVersion in build.gradle (Module: app) in Android Studio and get next error:
Error:Timeout waitin
For A novice like me, who encountered the situation for the first time and was not able to delete the .lock file or the .gradle folder,
In windows 10 or others, restart the pc using safe mode,(windows key + R ---> msconfig ----> select boot, boot in safe mode----> restart) then delete the files, (this should delete the files and folder)
then in normal mode, restart android studio and sync gradle to download the appropriate version (hopefully the project should work now)