In newer android studio versions alot of components had been updated and some name and options have also changed so to solve this problem in updated android studio version ?
go to settings -> experimental -> now check the box configure all Gradle task during Gradle sync (this can make Gradle sync slower) then click apply and rebuild project, now it should show up in the tasks folder.