本文介绍了Crashlytics的Andr​​oid Studio插件初始化失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Android 0.5.1工作室。我已经下载了Android的Crashlytics Studio插件,并从光盘安装。当我重新启动Android的工作室,我得到以下异常

 插件com.crashlytics.tools.androidstudio初始化失败,将被禁用。请重新启动Android的工作室。java.lang.NoClassDefFoundError的:组织/ OSGI /框架/ BundleActivator的
    在java.lang.ClassLoader.defineClass1(本机方法)
    在java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    在需要java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    在需要java.lang.ClassLoader.defineClass(ClassLoader.java:471)
    在com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:189)
    在com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:185)
    在com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:161)
    在com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124)
    在com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77)
    在com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
    在java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    在com.crashlytics.tools.intellij.OSGiPluginServices.createOSGi(OSGiPluginServices.java:62)
    在com.crashlytics.tools.intellij.CrashlyticsPlugin.initComponent(CrashlyticsPlugin.java:89)
    在com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:548)
    在com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
    在com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
    在com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
    在com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
    在org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
    在com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
    在com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:371)
    在com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)
    在com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
    在com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
    在com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:508)
    在com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
    在com.intellij.idea.MainImpl $ 1 $ 1 $ 1.run(MainImpl.java:46)
    在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    在java.awt.EventQueue.access $ 400(EventQueue.java:82)
    在java.awt.EventQueue中的$ 2.run(EventQueue.java:676)
    在java.awt.EventQueue中的$ 2.run(EventQueue.java:674)
    在java.security.AccessController.doPrivileged(本机方法)
    在java.security.AccessControlContext $ 1.doIntersectionPrivilege(​​AccessControlContext.java:86)
    在java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
    在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
    在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
    在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    在java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
抛出java.lang.ClassNotFoundException:引起org.osgi.framework.BundleActivator PluginClassLoader [com.crashlytics.tools.androidstudio,1.5.0]
    在com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
    在java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 44更多


解决方案

从血管这里Crashlytics!你可以继续尝试安装plugin.zip文件,而不是罐子,让我知道是否可行?

I'm running Android Studio 0.5.1. I've downloaded the Crashlytics Android Studio plugin and installed it from the disc. When I restart Android Studio, I get the following exception

Plugin 'com.crashlytics.tools.androidstudio' failed to initialize and will be disabled.  Please restart Android Studio.

java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
    at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:189)
    at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:185)
    at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:161)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124)
    at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.crashlytics.tools.intellij.OSGiPluginServices.createOSGi(OSGiPluginServices.java:62)
    at com.crashlytics.tools.intellij.CrashlyticsPlugin.initComponent(CrashlyticsPlugin.java:89)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:548)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
    at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
    at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
    at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
    at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
    at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:371)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
    at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:508)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
    at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:46)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
    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)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator PluginClassLoader[com.crashlytics.tools.androidstudio, 1.5.0]
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 44 more
解决方案

Hemal from Crashlytics here! Can you go ahead and try to install the plugin.zip file instead of the jar and let me know if that works?

这篇关于Crashlytics的Andr​​oid Studio插件初始化失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 20:17