Gradle任务未显示在Android Studio 4.2的Gradle工具窗口中 [英] Gradle tasks are not showing in the gradle tool window in Android Studio 4.2

查看:92
本文介绍了Gradle任务未显示在Android Studio 4.2的Gradle工具窗口中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Android Studio更新到了4.2版.我很惊讶没有在我的项目中看到Gradle任务.

I just updated Android Studio to version 4.2. I was surprised to not see the Gradle tasks in my project.

在先前版本4.1.3中,我可以看到如下所示的任务:

n the previous version, 4.1.3, I could see the tasks as shown here:

但是现在我只看到版本4.2中的依赖项:

But now I only see the dependencies in version 4.2:

我试图清除Android Studio的缓存并再次同步我的项目,但是没有任何变化.

I tried to clear Android Studio's cache and sync my project again, but there was no change.

这是功能更改吗?

推荐答案

确定,我发现了为什么在android studio 4.2中出现此行为.

OK I found why I got this behaviour in android studio 4.2.

这是预期的行为.我在这篇文章 https://issuetracker.google.com/issues/185420705 中找到了答案.

It is an intended behaviour. I found the answser in this post https://issuetracker.google.com/issues/185420705.

在Android项目中,Gradle任务列表很大且很慢.由于性能原因,默认情况下禁用此功能.你可以在以下位置重新启用它:设置|实验性|不建立Gradle任务在Gradle同步过程中列出.

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.

将此实验性更改放在android studio 4.2 的发行说明中可能很酷.

It could be cool that this experimental change is put in the release note of android studio 4.2.

这篇关于Gradle任务未显示在Android Studio 4.2的Gradle工具窗口中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆