我正在运行Android Studio 0.5.1.我已经下载了Crashlytics Android Studio插件并从光盘安装了它.当我重新启动Android Studio时,我收到以下异常
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
小智.. 63
来自Crashlytics的Hemal在这里!你可以继续尝试安装plugin.zip文件而不是jar,让我知道这是否有效?
来自Crashlytics的Hemal在这里!你可以继续尝试安装plugin.zip文件而不是jar,让我知道这是否有效?
使用Fabric Tool.您无需编写任何代码.请查看以下步骤以Crashlytics
在您的应用程序中安装.
进入此Fabric链接.然后注册并登录到您的帐户.
在Android Studio中,单击文件 - >设置 - >插件 - >在顶部搜索栏中,搜索此Fabric for Android
单击然后单击浏览,即可看到结构android工作室文件.
然后下载Fabric Android Studio Plugin.Zip文件.最后,重启Android Studio
然后你可以在eclipse工具中看到Fabric图标.查看下面的截图:
登录结构 - >输入组织 - >单击安装崩溃工具.它将自动添加代码.您不需要编写一行代码.它将在manifest
文件和文件中添加代码build.gradle
.
成功安装后,运行您的应用程序.如果您的应用程序崩溃,将在您的应用程序中通知它fabric
dashboard
.
输出:
下面我在仪表板中发布了崩溃报告:
进一步参考:Crashlytics