Gradle tasks are not showing in the gradle tool window in Android Studio 4.2
Solution 1:
OK, I found why I got this behaviour in android studio 4.2.
It is intended behaviour. I found the answer in this post: https://issuetracker.google.com/issues/185420705.
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.
Reload the Gradle project by clicking the "Sync Project with gradle Files" icon and the tasks will appear.
It could be cool that this experimental change is put in the release note of android studio 4.2
.
Solution 2:
Go to File -> Settings -> Experimental
and uncheck Do not build Gradle task list during Gradle sync
, then sync the project File -> Sync Project with Gradle Files
. If the problem is still there, just reboot Android Studio.
1.
2.