无法在android studio中添加Visual Studio Team Services插件

时间:2017-05-25 13:32:15

标签: android android-studio

java.lang.NoClassDefFoundError: com/microsoft/alm/plugin/services/AsyncService
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.registerComponents(ComponentManagerImpl.java:412)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:96)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:458)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:450)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:197)
    at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    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:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
    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)
Caused by: java.lang.ClassNotFoundException: com.microsoft.alm.plugin.services.AsyncService PluginClassLoader[com.microsoft.vso.idea, 1.116.1]
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:64)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 23 more

我想使用两个流程之一添加插件。请帮忙。

我想在Android studio中添加Visual Studio Team Service插件。 这里我有2个问题 -

  1. 如果我尝试从设置>插件>浏览回购>安装此插件那么错误信息是"下载失败"无法阅读留言。
  2. 如果我从https://plugins.jetbrains.com/plugin/7981-visual-studio-team-services下载插件并使用设置>添加jar文件插件>从磁盘安装插件。插件已添加。但如果我重新启动Android工作室而不是收到此错误消息 - 插件' com.microsoft.vso.idea'无法初始化并将被禁用。请重新启动Android Studio。

1 个答案:

答案 0 :(得分:1)

在第二种情况下,您可能已下载plugin.idea-1.xxx.zip文件,提取内容,在android studio中单击Install plugin from disk,然后从提取的内容中选择.jar文件{{1}这就是导致你发布的错误的原因。您应该做的是选择com.microsoft.alm.plugin.idea-1.xxx.jar文件本身而不解压缩,这将不会导致错误,插件将正常工作。 我希望这有用。