1

它显示了一个非常大的弹出错误和这个修剪错误:我之前使用过 Android Studio,现在由于我不知道的原因无法启动它。上次我使用 Android Studio 时,我只是更新了它,并没有做太多的开发或任何项目。大约 2 周后,我启动了我的 AS,这就是我所看到的。

内部错误。请向https://code.google.com/p/android/issues报告

java.lang.NoClassDefFoundError: com/google/api/client/auth/oauth2/Credential
    at com.google.gct.login.GoogleLogin.createGoogleLoginState(GoogleLogin.java:503)
    at com.google.gct.login.GoogleLogin.access$800(GoogleLogin.java:58)
    at com.google.gct.login.GoogleLogin$AndroidPreferencesOAuthDataStore.initializeUsers(GoogleLogin.java:708)
    at com.google.gct.login.GoogleLogin.getInstance(GoogleLogin.java:84)
    at com.google.gct.login.ui.GoogleLoginActionButton.<init>(GoogleLoginActionButton.java:40)
    at com.google.gct.login.ui.GoogleLoginAction.createCustomComponent(GoogleLoginAction.java:42)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.getCustomComponent(ActionToolbarImpl.java:330)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.fillToolBar(ActionToolbarImpl.java:310)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.updateActionsImpl(ActionToolbarImpl.java:894)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.access$000(ActionToolbarImpl.java:61)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl$1.updateActionsImpl(ActionToolbarImpl.java:168)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater$MyUpdateRunnable.run(ToolbarUpdater.java:191)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:675)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:656)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:626)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)
    at com.intellij.openapi.wm.impl.FocusManagerImpl$11.run(FocusManagerImpl.java:522)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2379)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:500)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.updateActions(ToolbarUpdater.java:108)
    at com.intellij.openapi.actionSystem.impl.ToolbarUpdater.updateActions(ToolbarUpdater.java:93)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.setMiniMode(ActionToolbarImpl.java:1268)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.<init>(ActionToolbarImpl.java:184)
    at com.intellij.openapi.actionSystem.impl.ActionToolbarImpl.<init>(ActionToolbarImpl.java:147)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.createActionToolbar(ActionManagerImpl.java:471)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.createActionToolbar(ActionManagerImpl.java:466)
    at com.intellij.openapi.wm.impl.IdeRootPane.createToolbar(IdeRootPane.java:213)
    at com.intellij.openapi.wm.impl.IdeRootPane.updateToolbar(IdeRootPane.java:193)
    at com.intellij.openapi.wm.impl.IdeRootPane.<init>(IdeRootPane.java:99)
    at com.intellij.openapi.wm.impl.IdeFrameImpl.createRootPane(IdeFrameImpl.java:184)
    at com.intellij.openapi.wm.impl.IdeFrameImpl.<init>(IdeFrameImpl.java:96)
    at com.intellij.openapi.wm.impl.WindowManagerImpl.showFrame(WindowManagerImpl.java:514)
    at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:306)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:172)
    at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:52)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
    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(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:362)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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: com.google.api.client.auth.oauth2.Credential PluginClassLoader[com.google.gct.login, 1.0]
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
4

1 回答 1

1

刚刚通过运行安装程序文件解决了这个问题,该文件帮助我卸载了 Android Studio,保留了所有基本库文件,并将其重新安装在新的空目录中。一切都像以前一样正常工作。

于 2015-10-03T10:42:10.943 回答