Gradle tasks disappeared after upgrading Android stuido 4.2?

Recently, many people asked that after upgrading Android studio 4.2, tasks could not be seen in the gradle window

Before 4.2
4.2, there were only dependencies and no tasks

The answer is found in the official issue:

Gradle task list is large and slow to populate in Android projects. This feature by default is disabled for performance reasons. You can re-enable it in: Settings | Experimental | Do not build Gradle task list during Gradle sync.

Gradle tasks is closed by default due to performance problems. You can open it in the following ways:

File -> Settings -> Experimental

Remove the check below

Do not build Gradle task list during Gradle sync

After re engineering sync, you can see gradle tasks.

Read More: