Android的工作室刷新项目build.gradle变化 [英] Android-Studio refresh project with build.gradle changes

查看:223
本文介绍了Android的工作室刷新项目build.gradle变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何可以同步改变我做的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.

这篇关于Android的工作室刷新项目build.gradle变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆