后面再Event Log 里面看到下面的提示
17:01 Gradle sync failed: EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue@1c1ff466 Current thread: Thread[ApplicationImpl pooled thread 225,4,Idea Thread Group] 2032381957SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 391656334 (3 s 710 ms)
17:01 Syncing only active variant
You can disable this experimental feature from
File → Settings → Experimental → Gradle → Only sync the active variant
解决办法找到
File → Settings → Experimental → Gradle → Only sync the active variant 按着这个设置把Only sync the active variant 打钩去掉即可
总结:Android studio出现问题也可以在Event Log 查找原因。有些只是一些设置的问题。