Android Studio无法在IDE启动时使用调试器 - IllegalArguement异常

时间:2013-06-18 20:24:57

标签: android-studio

ADB正在运行,但调试器无法看到任何设备。

当Android Studio(v0.1.5)启动时,我在事件日志中得到以下错误:

  

1:17:02 PM IllegalArgumentException:com / intellij / openapi / vfs / impl / local / LocalFileSystemBase.findFileByIoFile的@NotNull参数的参数0不能为null:com / intellij / openapi的@NotNull参数的参数0 /vfs/impl/local/LocalFileSystemBase.findFileByIoFile不能为null

点击右下方闪烁的感叹号显示" IDE Fatal Error"窗口包含以下内容:

  

com / intellij / openapi / vfs / impl / local / LocalFileSystemBase.findFileByIoFile的@NotNull参数的参数0不能为null:com / intellij / openapi / vfs / impl / local / LocalFileSystemBase的@NotNull参数的参数0 .findFileByIoFile不能为null   java.lang.IllegalArgumentException:com / intellij / openapi / vfs / impl / local / LocalFileSystemBase.findFileByIoFile的@NotNull参数的参数0不能为null       在com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.findFileByIoFile(LocalFileSystemBase.java)       在org.jetbrains.android.facet.AndroidFacet.getManifest(AndroidFacet.java:835)       在org.jetbrains.android.facet.AndroidResourceFilesListener $ 1.run(AndroidResourceFilesListener.java:123)       在com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945)       在org.jetbrains.android.facet.AndroidResourceFilesListener.notifyFacetInitialized(AndroidResourceFilesListener.java:120)       在org.jetbrains.android.facet.AndroidFacet $ 3.run(AndroidFacet.java:661)       在com.intellij.ide.startup.impl.StartupManagerImpl $ 7.run(StartupManagerImpl.java:286)       在com.intellij.ide.startup.impl.StartupManagerImpl.runActivities(StartupManagerImpl.java:259)       在com.intellij.ide.startup.impl.StartupManagerImpl.access $ 100(StartupManagerImpl.java:52)       在com.intellij.ide.startup.impl.StartupManagerImpl $ 4.run(StartupManagerImpl.java:183)       在com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:94)       在com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:177)       在com.intellij.openapi.project.impl.ProjectManagerImpl $ 4 $ 2.run(ProjectManagerImpl.java:439)       在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)       at java.awt.EventQueue.access $ 400(EventQueue.java:82)       at java.awt.EventQueue $ 2.run(EventQueue.java:669)       at java.awt.EventQueue $ 2.run(EventQueue.java:667)       at java.security.AccessController.doPrivileged(Native Method)       at java.security.AccessControlContext $ 1.doIntersectionPrivilege(AccessControlContext.java:87)       at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)       在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:701)       在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:526)       在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:349)       在com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:766)       在com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:195)       at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:717)       at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:303)       at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:297)       at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:257)       在com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:419)       在com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:506)       在com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:179)       在com.intellij.ide.RecentProjectsManager.doOpenProject(RecentProjectsManager.java:46)       at com.intellij.ide.RecentProjectsManagerBase $ MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:324)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)       在java.lang.reflect.Method.invoke(Method.java:597)       at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:120)       在com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:228)       在com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:219)       在com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:209)       在com.intellij.util.messages.impl.MessageBusImpl.access $ 000(MessageBusImpl.java:43)       at com.intellij.util.messages.impl.MessageBusImpl $ 1.invoke(MessageBusImpl.java:131)       在com.sun.proxy。$ Proxy37.appStarting(未知来源)       在com.intellij.idea.IdeaApplication.loadProject(IdeaApplication.java:334)       在com.intellij.idea.IdeaApplication.access $ 500(IdeaApplication.java:63)       在com.intellij.idea.IdeaApplication $ IdeStarter $ 2.run(IdeaApplication.java:301)       在com.intellij.openapi.application.impl.LaterInvocator $ FlushQueue.run(LaterInvocator.java:347)       在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)       at java.awt.EventQueue.access $ 400(EventQueue.java:82)       at java.awt.EventQueue $ 2.run(EventQueue.java:669)       at java.awt.EventQueue $ 2.run(EventQueue.java:667)       at java.security.AccessController.doPrivileged(Native Method)       at java.security.AccessControlContext $ 1.doIntersectionPrivilege(AccessControlContext.java:87)       at java.awt.EventQueue.dispatchEvent(EventQueue.java:678)       在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:701)       在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:526)       在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:349)       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)       在java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

1 个答案:

答案 0 :(得分:0)

这似乎是AS 0.1.5的回归。

使用多模块项目时遇到此问题。当您创建一个新项目时AS创建的父模块以某种方式得到了与它相关联的android和android-gradle facets。

在项目属性中删除这些>模块解决了这个问题。