Crashlytics Android Studio无法运行:NoClassDefFoundError:javax / swing / SwingUtilities

时间:2014-04-15 10:36:20

标签: android crashlytics

我正在使用android studio 0.5.4。 我尝试安装crashlytics插件。我已下载并获得了CrashlyticsAndroidStudioPlugin.zip。我已经安装了它setttings > Plugins > Install plugin form disk > "OK".工具栏上出现了crashlytics按钮。但是,当我选择myAndroidProject然后单击“红色崩溃按钮”时,我收到以下错误消息:

 [ 596982]  ERROR - llij.ide.plugins.PluginManager - javax/swing/SwingUtilities
 java.lang.NoClassDefFoundError: javax/swing/SwingUtilities
        at com.crashlytics.tools.ide.app.Launcher.asyncShowShell(Launcher.java:1
 16)
        at com.crashlytics.tools.intellij.app.CrashlyticsBridgeImpl.asyncShowPar
entedShell(CrashlyticsBridgeImpl.java:179)
        at com.crashlytics.tools.intellij.app.CrashlyticsBridgeImpl.access$000(C
rashlyticsBridgeImpl.java:36)
        at com.crashlytics.tools.intellij.app.CrashlyticsBridgeImpl$2.setSelecte
d(CrashlyticsBridgeImpl.java:168)
        at com.crashlytics.tools.intellij.actions.CrashlyticsAction.setSelected(
CrashlyticsAction.java:59)
        at com.intellij.openapi.actionSystem.ToggleAction.actionPerformed(Toggle
Action.java:42)
        at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwar
e(ActionUtil.java:164)
        at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(A
ctionButton.java:170)
        at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(Act
ionButton.java:133)
        at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent
(ActionButton.java:311)
        at java.awt.Component.processEvent(Component.java:6292)
        at java.awt.Container.processEvent(Container.java:2234)
        at java.awt.Component.dispatchEventImpl(Component.java:4883)
        at java.awt.Container.dispatchEventImpl(Container.java:2292)
        at java.awt.Component.dispatchEvent(Component.java:4705)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898
   )
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
        at java.awt.Container.dispatchEventImpl(Container.java:2278)
        at java.awt.Window.dispatchEventImpl(Window.java:2739)
        at java.awt.Component.dispatchEvent(Component.java:4705)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:86)
        at java.awt.EventQueue$4.run(EventQueue.java:719)
        at java.awt.EventQueue$4.run(EventQueue.java:717)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.jav
a:697)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)

        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.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: javax.swing.SwingUtilities not foun
d by com.crashlytics.tools.intellij.core [1]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
gation(BundleWiringImpl.java:1460)
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm
pl.java:72)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
ss(BundleWiringImpl.java:1843)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 42 more
[ 597364]  ERROR - llij.ide.plugins.PluginManager - Android Studio (Preview) 0.5
.4  Build #AI-135.1101912
[ 597365]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0
[ 597366]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Server
VM
[ 597367]  ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
[ 597368]  ERROR - llij.ide.plugins.PluginManager - OS: Windows 7
[ 597368]  ERROR - llij.ide.plugins.PluginManager - Last Action: Actions.Crashly
 tics.CrashlyticsAction

任何人都可以帮助我吗?你有没有收到这些错误信息? 仅供参考:我正在使用Windows 7并使用java jdk1.8.0.

1 个答案:

答案 0 :(得分:5)

我一直在环顾四周,我认为Java 8可以做些什么。我看到有几个人遇到这个问题。人们常说的是他们有Java 8.我刚刚检查了Java 1.7.0_55。它似乎解决了这个问题。