Android Studio StackOverFlowError: null

Android Studio StackOverFlowError: null

今天更新到 2.3 版后,我的 Android Studio 停止工作了。

null
java.lang.WhosebugError
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:272)
    at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:268)
    at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:222)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.intellij.openapi.editor.impl.DocumentImpl.getText(DocumentImpl.java:806)
    at com.intellij.notification.EventLog.getStatusText(EventLog.java:279)
    at com.intellij.notification.EventLog.formatForLog(EventLog.java:178)
    at com.intellij.notification.LogModel.addNotification(LogModel.java:57)
    at com.intellij.notification.EventLog$ProjectTracker.printNotification(EventLog.java:507)
    at com.intellij.notification.EventLog$ProjectTracker.access0(EventLog.java:462)
    at com.intellij.notification.EventLog$ProjectTracker.notify(EventLog.java:479)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
    at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:377)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:364)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:350)
    at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:343)
    at com.intellij.util.messages.impl.MessageBusImpl.access0(MessageBusImpl.java:42)
    at com.intellij.util.messages.impl.MessageBusImpl.invoke(MessageBusImpl.java:226)
    at com.sun.proxy.$Proxy62.notify(Unknown Source)
    at com.intellij.notification.Notifications$Bus.doNotify(Notifications.java:75)
    at com.intellij.notification.Notifications$Bus.lambda$notify(Notifications.java:69)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.intellij.notification.Notifications$Bus.notify(Notifications.java:69)
    at com.intellij.notification.Notification.notify(Notification.java:296)
    at com.android.tools.idea.gradle.project.sync.GradleSyncState.addToEventLog(GradleSyncState.java:246)
    at com.android.tools.idea.gradle.project.sync.GradleSyncState.addInfoToEventLog(GradleSyncState.java:242)
    at com.android.tools.idea.gradle.project.sync.GradleSyncState.syncStarted(GradleSyncState.java:160)
    at com.android.tools.idea.gradle.project.sync.GradleSyncState.syncStarted(GradleSyncState.java:146)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.handlePreSyncCheckFailure(GradleSyncInvoker.java:207)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:179)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdk(SdkSync.java:126)
    at com.android.tools.idea.gradle.project.sync.SdkSync.syncIdeAndProjectAndroidSdks(SdkSync.java:71)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidSdkPreSyncCheck.doCheckCanSync(AndroidSdkPreSyncCheck.java:42)
    at com.android.tools.idea.gradle.project.sync.precheck.AndroidStudioSyncCheck.canSync(AndroidStudioSyncCheck.java:30)
    at com.android.tools.idea.gradle.project.sync.precheck.PreSyncChecks.canSync(PreSyncChecks.java:48)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.sync(GradleSyncInvoker.java:175)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.lambda$requestProjectSync(GradleSyncInvoker.java:106)
    at com.intellij.ui.AppUIUtil.invokeLaterIfProjectAlive(AppUIUtil.java:97)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSync(GradleSyncInvoker.java:115)
    at com.android.tools.idea.gradle.project.sync.GradleSyncInvoker.requestProjectSyncAndSourceGeneration(GradleSyncInvoker.java:90)
    at com.android.tools.idea.gradle.sdk.GradleAndroidSdkEventListener.afterSdkPathChange(GradleAndroidSdkEventListener.java:71)
    at com.android.tools.idea.sdk.IdeSdks.afterAndroidSdkPathUpdate(IdeSdks.java:316)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:296)
    at com.android.tools.idea.sdk.IdeSdks.setAndroidSdkPath(IdeSdks.java:224)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$null[=10=](SdkSync.java:213)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
    at com.android.tools.idea.gradle.project.sync.SdkSync.lambda$setIdeSdk(SdkSync.java:212)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2432)
    at com.android.tools.idea.gradle.project.sync.SdkSync.setIdeSdk(SdkSync.java:212)

报错信息太长,我不能post全部放在这里。有人知道如何解决这个问题吗?顺便说一下,我必须从 android-sdk 包中安装 SDK,不包含在 android-studio 中。我正在使用 Arch Linux x64.

尝试升级 gradle 版本。它似乎不再支持旧的 gradle

经过一些手动修改,我发现这是因为新的SDK和NDK安装在root拥有的/opt中,而我的用户没有正确的权限。 正如许多人提到的那样,我不得不 link libstdc++ 从 /usr/lib 到 /emulator/lib64/libstdc++