I've installed the latest Fabric plugin for Android Studio and it run fine for a while. Just after updating to Android Studio 1.1.0 I got this in event log:
我已经为Android Studio安装了最新的Fabric插件,它可以运行一段时间。刚更新到Android Studio 1.1.0后,我在事件日志中得到了这个:
And the NullPointerException:
和NullPointerException:
update failed for AnAction with ID=Actions.Crashlytics.CrashlyticsAction java.lang.NullPointerException at com.crashlytics.tools.intellij.CrashlyticsPlugin.getCrashlyticsBridge(CrashlyticsPlugin.java:104)
at com.crashlytics.tools.intellij.actions.CrashlyticsAction.getDelegate(CrashlyticsAction.java:24)
at com.crashlytics.tools.intellij.actions.CrashlyticsAction.update(CrashlyticsAction.java:34)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:113)
at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:187)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:95)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$2.run(ActionToolbarImpl.java:927)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActions(ActionToolbarImpl.java:966)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImmediately(ActionToolbarImpl.java:913)
at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateAllToolbarsImmediately(ActionToolbarImpl.java:72)
at com.intellij.ide.actions.SearchEverywhereAction$11$1.run(SearchEverywhereAction.java:511)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
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:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
I've tried Rebuild, reinstalling the plugin, but I still get the same exception. I suspect that the exception is due to/has something to do with the Android studio update to 1.1.0.
我试过Rebuild,重新安装插件,但我仍然得到相同的异常。我怀疑该异常是由于/与Android工作室更新到1.1.0有关。
I've reported the issue, but that doesn't solve the problem. Has anyone came across this issue? Any ideas?
我已经报告了这个问题,但这并没有解决问题。有人遇到过这个问题吗?有任何想法吗?
3 个解决方案
#1
10
Uninstall and Re-download the plugin
I uninstalled the Fabric plugin and installed a newly downloaded 2.2.0 version of the plugin (don't remember) and now it seems the exception is gone.
我卸载了Fabric插件并安装了一个新下载的2.2.0版本的插件(不记得了)现在看来异常消失了。
Note: After the correction from @Dheeraj Bhaskar, I actually did the process for the Fabric plugin - I couldn't find an option to download a Crashlytics plugin.
注意:在@Dheeraj Bhaskar更正后,我实际上完成了Fabric插件的过程 - 我找不到下载Crashlytics插件的选项。
#2
1
This has been happening to me for months. Latest version of AS. Latest download of Fabric plugin.
这已经发生在我身上好几个月了。最新版本的AS。最新下载Fabric插件。
I have emailed support many times, but I get back the same stupid answer over and over: "You must have unzipped the plugin before importing it".
我已多次通过电子邮件发送支持,但我一遍又一遍地回答同样的愚蠢答案:“你必须在导入之前解压缩插件”。
Really no I didn't. I imported the zip file like you said. But problem still occurs.
真的不,我没有。我像你说的那样导入了zip文件。但问题仍然存在。
Please fix this.
请解决这个问题。
EDIT: https://*.com/a/29941872/150050
编辑:https://*.com/a/29941872/150050
#3
0
I had the exact same problem, I'm using the latest AndroidStudio all the time and for some reason the fabric plugin was not working. The way I solved the issue is by not using Fabric Android Studio plugin and instead downloading the Fabric IntelliJ Plugin.
我有完全相同的问题,我一直在使用最新的AndroidStudio,由于某种原因,结构插件无法正常工作。我解决这个问题的方法是不使用Fabric Android Studio插件,而是下载Fabric IntelliJ插件。
To make sure it works you should uninstall any fabric plugin you currently have and restart the Android Studio. Then Launch the Android Studio and install the downloaded FabricIntelliJPlugin.zip
file as plugin and apply the changes. (don't forget to restart again)
要确保它有效,您应该卸载当前的任何光纤插件并重新启动Android Studio。然后启动Android Studio并将下载的FabricIntelliJPlugin.zip文件作为插件安装并应用更改。 (别忘了再次重启)
Hope this will help.
希望这会有所帮助。
#1
10
Uninstall and Re-download the plugin
I uninstalled the Fabric plugin and installed a newly downloaded 2.2.0 version of the plugin (don't remember) and now it seems the exception is gone.
我卸载了Fabric插件并安装了一个新下载的2.2.0版本的插件(不记得了)现在看来异常消失了。
Note: After the correction from @Dheeraj Bhaskar, I actually did the process for the Fabric plugin - I couldn't find an option to download a Crashlytics plugin.
注意:在@Dheeraj Bhaskar更正后,我实际上完成了Fabric插件的过程 - 我找不到下载Crashlytics插件的选项。
#2
1
This has been happening to me for months. Latest version of AS. Latest download of Fabric plugin.
这已经发生在我身上好几个月了。最新版本的AS。最新下载Fabric插件。
I have emailed support many times, but I get back the same stupid answer over and over: "You must have unzipped the plugin before importing it".
我已多次通过电子邮件发送支持,但我一遍又一遍地回答同样的愚蠢答案:“你必须在导入之前解压缩插件”。
Really no I didn't. I imported the zip file like you said. But problem still occurs.
真的不,我没有。我像你说的那样导入了zip文件。但问题仍然存在。
Please fix this.
请解决这个问题。
EDIT: https://*.com/a/29941872/150050
编辑:https://*.com/a/29941872/150050
#3
0
I had the exact same problem, I'm using the latest AndroidStudio all the time and for some reason the fabric plugin was not working. The way I solved the issue is by not using Fabric Android Studio plugin and instead downloading the Fabric IntelliJ Plugin.
我有完全相同的问题,我一直在使用最新的AndroidStudio,由于某种原因,结构插件无法正常工作。我解决这个问题的方法是不使用Fabric Android Studio插件,而是下载Fabric IntelliJ插件。
To make sure it works you should uninstall any fabric plugin you currently have and restart the Android Studio. Then Launch the Android Studio and install the downloaded FabricIntelliJPlugin.zip
file as plugin and apply the changes. (don't forget to restart again)
要确保它有效,您应该卸载当前的任何光纤插件并重新启动Android Studio。然后启动Android Studio并将下载的FabricIntelliJPlugin.zip文件作为插件安装并应用更改。 (别忘了再次重启)
Hope this will help.
希望这会有所帮助。