解决Android Studio 右上角Gradle不显示task_gradle中没有build task-CSDN博客
不正常的情况下

正常的情况下

解决方案
依次点击:File -> Settings -> Experimental -> 取消勾选 "Do not build Gradle task list during Gradle sync"

同步项目即可

解决Android Studio 右上角Gradle不显示task_gradle中没有build task-CSDN博客
依次点击:File -> Settings -> Experimental -> 取消勾选 "Do not build Gradle task list during Gradle sync"