带有 build.gradle 更改的 Android-Studio 刷新项目 [英] Android-Studio refresh project with build.gradle changes

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

问题描述

如何将我在 build.gradle 中所做的更改同步到项目结构中(例如,AndroidStudio 正在识别我添加的库?有点像 maven 项目的重新导入所有 maven 项目" - 仅用于纯 gradle 项目.

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 Studio 0.1.3 中,他们在工具栏中的其他 Android 特定按钮旁边添加了一个 Gradle 项目刷新按钮.手动更改 build.gradle 文件和 settings.gradle,然后单击此按钮.它应该根据 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.

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

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