问题
I've started to work on a android project that has many gradle tasks. After cloning the project from git, there is not gradle tab in Android Studio!
回答1:
If you downloaded a project but gradle did not exist inside it You can copy the required files, such as gradle, from within another project But if you mean, gradle tab is not visible at the right of the page You can give new settings to the Android studio ->file->import settings -> choose your own settings.jar or you can enable this gradle tab from ->view->tool windows -> choose gradle
movafag bashid
回答2:
Hit Ctrl+Shift+A
(for Win/Linux) or Cmd+Shift+A
(for Mac) and type "Gradle".
回答3:
If it has build.gradle file you can run gradle task from command line if you set path to gradle in your system path or you can have it set locally in project on which you are working on. Android studio has also on option to edit/add run configuration where you can also select what you want to do or run.
To list all possible tasks run command gradle tasks
回答4:
Your project should contain build.gradle
file and if it is there then, there is gradle
navigation tab on the right side
in your android studio.
When you click it, it will show you the tasks available and you can run your gradle
tasks
from there.
回答5:
I had to do the following (Windows):
- go to File -> settings
- change keymap to windows
- Ctrl+Shift+A
- search
gradle
and choosesync project with grade file
来源:https://stackoverflow.com/questions/52253196/android-studio-gradle-tab