无法找到“与Gradle文件同步项目” IntelliJ IDEA中的按钮 [英] Can't find "Sync Project with Gradle Files" button in IntelliJ IDEA
问题描述
我刚刚添加了 google-play-services-lib
库到我的项目中,并且卡在需要用gradle文件同步项目的位置,但是此按钮在IntelliJ 13.0.1上不存在。是否有替代这个函数?
作为替代方案,您可以使用 我也没有找到这个按钮,所以我做了我自己的:)刷新所有Gradle项目<
查看 - >打开Gradle工具窗口。工具窗口 - > Gradle
编辑 - >开始宏录制宏 - >开始录制宏
刷新所有Gradle项目
编辑 - >停止宏录制宏 - >停止录制宏
自定义菜单和工具栏...
主菜单 - >编辑 - >宏 - >宏操作
找到您的 Gradle同步
宏,选择它并按编辑操作图标...
菜单和工具栏中
选择主工具栏
组,按添加后...
并选择所有操作 - >宏 - > Gradle同步
使用Gradle文件同步项目
按钮!
I just added the google-play-services-lib
library to my project and am stuck where I need to "sync the project with gradle files", but this button does not exist on IntelliJ 13.0.1. Is there an alternative to this function?
As alternative you can use Refresh all Gradle projects
button in Gradle tool window.
I also have not found this button so I made my own :)
- Open Gradle tool window with
View -> Tool Windows -> Gradle
- Start Macro Recording with
Edit -> Macros -> Start Recording Macro
- In Gradle tool window press
Refresh all Gradle projects
button - Stop Macro Recording with
Edit -> Macros -> Stop Recording Macro
- Save Macro with name
Gradle sync
- Press with right mouse button on IntelliJ IDEA toolbar and choose
Customize Menus and Toolbars...
- Under
Main menu -> Edit -> Macros -> Macro Actions
find yourGradle sync
Macro, select it and pressEdit Action Icon...
- Download this icon Sync Project With Gradle Files icon (from documentation http://developer.android.com/google/play-services/setup.html) and select this icon in IDEA dialog window
- Now in
Menus and Toolbars
select last item inMain Toolbar
group, pressAdd After...
and selectAll actions -> Macros -> Gradle sync
- Now you have
Sync Project with Gradle Files
button!
这篇关于无法找到“与Gradle文件同步项目” IntelliJ IDEA中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!