delete .gradle file and after that Build > Clean Project Build > Rebuild Project
try to run it, if it doesnt work then go toandroid
File > Invalid Caches / Restart and select "Invalidate and Restart"
then close the project, reopen it and run it again.gradle
參考:ui
http://stackoverflow.com/questions/36720798/gradle-hangs-on-executing-tasks-androidgeneratedebugsourcesdebug