Android Studio 构建/清理 [英] Android Studio Build/Clean
问题描述
为了编译外部 jar,我必须使用终端并进行清理.但是,当我进入项目的根目录并执行
In an attempt to compile external jars, I have to use the terminal and do a clean. However, when I go into the root directory of my project and execute
gradlew 干净
我收到以下消息:
-bash: gradlew: 命令未找到
-bash: gradlew: command not found
这是我的应用程序文件夹主目录的屏幕截图.
Here's a screenshot of my application folder's home directory.
如果您需要其他任何东西,请告诉我,我不确定为什么会这样.
Let me know if you need anything else, I'm not sure why this is happening.
推荐答案
gradlew 不在您的全局路径中.要使用终端项目目录中的 gradle 包装器 (gradlew) 执行clean"任务(或任何与此相关的任务),请使用./"指定当前目录:
gradlew is not in your global path. To execute the 'clean' task (or any task for that matter) using the gradle wrapper (gradlew) in your project directory in your terminal, specify the current directory with the './':
./gradlew clean
这篇关于Android Studio 构建/清理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!