Android-Studio refresh project with build.gradle changes

白昼怎懂夜的黑 提交于 2019-11-29 05:39:14

I read somewhere that the "Synchronize" item on the module's context menu should update the IDE's settings based on the build.gradle file.

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.

One thing that has worked for me was opening the Gradle panel on the right side of the editor (above "Maven Projects" and "Commander") and clicking the refresh button. That refreshed the module settings.

My solution for newer version of Android Studio. Tested on version 3.2.1. You can selected Refresh from the menu as showing here:

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