android - 如何运行 gradle 任务 --info

标签 android android-studio gradle

我看到一些人在 Stackoverflow 上询问与 Gradle 相关的问题,得到的答案如“run gradle tasks --info

我该如何运行它?我在哪里输入这个?

编辑:我尝试使用 Android Studio 的终端功能并执行了以下操作:

C:\Users\User\Desktop\MyProject>gradle tasks --info
'gradle' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\User\Desktop\MyProject>

最佳答案

使用终端(在 Mac 上)/cmd(在 Windows 上)并导航到项目文件夹,或者如果您使用的是 AndroidStudio,则有一个集成终端。

在靠近 Android 窗口的页面底部 enter image description here

关于android - 如何运行 gradle 任务 --info,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33480216/

相关文章:

android - kotlin android proguard错误

android - 如何使用 <include/> 标签 android 包含子文件夹布局

android - 尝试对已绑定(bind)的 ID 0 使用 @BindView

java - 引用不同子项目中的自定义 jar 文件

android - 无法合并dex-Gradle 3.0.0

android - 在没有确认弹出窗口的情况下发送电子邮件

c# - 如何对Android Seekbars做限制,不让用户直接移动?

android - Android ViewDragHelper 中的 ArrayIndexOutOfBoundsException

maven - Gradle从Maven仓库下载所有依赖项

android - React native,无法解析静态图像的模块