Android studio Gradle Tab

大城市里の小女人 提交于 2020-06-23 11:35:11

问题


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):

  1. go to File -> settings
  2. change keymap to windows
  3. Ctrl+Shift+A
  4. search gradle and choose sync project with grade file



来源:https://stackoverflow.com/questions/52253196/android-studio-gradle-tab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!