插件Android支持中的例外情况,工作人员因异常而退出

时间:2016-10-20 03:46:13

标签: android android-studio android-studio-2.2

我刚刚在Linux上更新到Android Studio 2.2.2(稳定版),现在我不断崩溃。

已经尝试过:

  • 使缓存无效/重新启动
  • 清洁项目
  • 删除gradle cache:rm .gradle/caches/* -rf
  • 删除Android Studio配置目录:.AndroidStudio2.2
Worker exited due to exception: Method getName in class org/jetbrains/android/dom/resources/ResourceElement has illegal modifiers: 0x411
java.lang.ClassFormatError: Method getName in class org/jetbrains/android/dom/resources/ResourceElement has illegal modifiers: 0x411
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:261)
    at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:257)
    at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:226)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:119)
    at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:73)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:62)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.android.tools.idea.editors.strings.StringResourceEditorProvider.canViewTranslations(StringResourceEditorProvider.java:38)
    at com.android.tools.idea.editors.strings.StringResourceEditorNotificationProvider.createNotificationPanel(StringResourceEditorNotificationProvider.java:51)
    at com.android.tools.idea.editors.strings.StringResourceEditorNotificationProvider.createNotificationPanel(StringResourceEditorNotificationProvider.java:32)
    at com.intellij.ui.EditorNotificationsImpl$4.performInReadAction(EditorNotificationsImpl.java:146)
    at com.intellij.openapi.progress.util.ReadTask$1.compute(ReadTask.java:70)
    at com.intellij.openapi.progress.util.ReadTask$1.compute(ReadTask.java:67)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
    at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:67)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$7.compute(ProgressIndicatorUtils.java:227)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$7.compute(ProgressIndicatorUtils.java:223)
    at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:162)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:159)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:223)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$000(ProgressIndicatorUtils.java:45)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$6$2.run(ProgressIndicatorUtils.java:188)
    at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:187)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

1 个答案:

答案 0 :(得分:0)

要解决此问题,我删除了Android Studio配置目录:.AndroidStudio2.2
删除了Android Studio安装:android-studio
下载的版本2.2.1并从干净安装更新。