简体   繁体   English

在 Android Studio 中找不到与 Gradle 同步按钮

[英]Can't find the Sync with Gradle button in Android Studio

today I encountered a problem when trying to run an app from Android Studio.今天我在尝试从 Android Studio 运行应用程序时遇到了一个问题。 I found out that the solution to the problem is to Sync with Gradle.我发现问题的解决方案是与 Gradle 同步。 However, I can't find the Sync with Gradle button in my editor.但是,我在编辑器中找不到与 Gradle 同步按钮。 (None of the solutions listed on StackOverflow worked for me). (StackOverflow 上列出的所有解决方案都不适合我)。 Here is an image:这是一张图片:

Android Studio 截图 文件菜单 ack.imgur.com/Eh9vX.png ack.imgur.com/Eh9vX.png

EDIT: It isn't in the file menu.编辑:它不在文件菜单中。

Goto File menu, there you will find the option to Sync Project with Gradle, Check the image below :转到File菜单,您会在那里找到将项目与 Gradle 同步的选项,检查下图:

Gradle 同步项目

EDIT编辑

Goto Settings in File Menu as shown in the image below.转到File菜单中的设置,如下图所示。

在此处输入图片说明

then specify the path of the Gradle File which you have Downloaded Manually & Apply the Settings as shown in the image below.然后指定您手动下载的 Gradle 文件的路径并应用设置,如下图所示。

在此处输入图片说明

After Specifying the path, you see the option "Sync Project With Gradle Files" in File Menu.指定路径后,您会在文件菜单中看到“将项目与 Gradle 文件同步”选项。

I hope this will help.我希望这将有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM