简体   繁体   中英

Sync Project with Gradle Files button disappeared from Android Studio

Importing an Android project into Android Studio, the error "Design editor is unavailable until next gradle sync" appears:

在此处输入图像描述

You can see that there is no option: Sync Project with Gradle Files: 在此处输入图像描述

Going to: File -> Settings -> Main Toolbar -> Android.MainToolBarActionGroup -> Sync Projects with Gradle Files

But the Apply option is "off" in the sense of being "locked", so there's no way to change anything: 在此处输入图像描述

And all options for Clean Project are not available:

在此处输入图像描述

Please what to do to fix this?

It can be found at the top of Android Studio, or at the top left side. 左侧屏幕顶部 Look for the little elephants.

This problem was caused because I opened the project in Android Studio. But the right to do is to IMPORT the project. Thank you very much.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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