I am facing issue with Android Studio 3, gradle android plugin 3 with build target 27 and support lib 27.0.0
Error:Execution failed for task \':module:mockab
I had this issue. Although, with API 28 platform tools. I deleted from the path and reinstalled, which worked for me.