Android的工作室刷新项目build.gradle变化工作室、项目、Android、build

2023-09-06 01:10:29 作者:自我主宰

我如何可以同步改变我做的build.gradle到项目结构(例如,该AndroidStudio是认识我添加的lib? 有点像在重新导入所有的Maven项目的Maven项目 - 只是一个纯粹的摇篮项目

how can I sync changes I made in the build.gradle into the project structure ( e.g. that AndroidStudio is recognizing the lib I added? Kind of like the "reimport all maven projects" for maven projects - just for a pure gradle project.

推荐答案

我读的地方,基于build.gradle文件模块的上下文菜单上的同步项应更新IDE的设置。

好了,所以在Android的工作室0.1.3的最新版本,他们已经增加了一个摇篮项目刷新按钮旁边的工具条中的其他Android特定的按钮。手动更改的build.gradle文件,settings.gradle,然后单击此按钮。它应配置以及基于摇篮的文件刷新您的项目设置。

Ok, so in the latest version of Android Studio 0.1.3, they've added a Gradle project refresh button next to the other Android specific buttons in the toolbar. Make changes manually to the build.gradle files and settings.gradle and then click this button. It should configure and refresh your project settings based on the gradle files.