idea编译Android项目每次都报错

xiao_小夭 发布于 2017/03/16 10:21
阅读 328
收藏 0

Write access is allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
  known modalities={ModalityState.NON_MODAL=true, ModalityState:Loading Project 1045840699: running=false; canceled=false=true, ModalityState:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog0,321,135,565x506,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Genymotion Device Manager,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]=true, ModalityState:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog1,328,161,624x478,invalid,hidden,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=Select Deployment Target,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=,rootPaneCheckingEnabled=true]=true, ModalityState:Waiting for adb 1679111836: running=false; canceled=false=true}
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
    at com.intellij.openapi.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:246)
    at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:296)
    at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:288)
    at com.android.tools.idea.gradle.invoker.GradleInvoker.lambda$saveAllFilesSafely$0(GradleInvoker.java:321)
    at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2514)
    at com.android.tools.idea.gradle.invoker.GradleInvoker.saveAllFilesSafely(GradleInvoker.java:321)
    at com.android.tools.idea.gradle.invoker.GradleInvoker.executeTasks(GradleInvoker.java:304)
    at com.android.tools.idea.gradle.invoker.GradleInvoker.executeTasks(GradleInvoker.java:258)
    at com.android.tools.idea.gradle.invoker.GradleInvoker.executeTasks(GradleInvoker.java:232)
    at com.android.tools.idea.gradle.run.GradleTaskRunner$1.lambda$run$0(GradleTaskRunner.java:74)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:843)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

加载中
0
x
xiao_小夭

是Android Support插件报的错, 项目可以正常编译运行

返回顶部
顶部