问题描述:

昨天为了解决某个问题,禁用了Kotlin(Plugins),结果android无法启动了

启动界面如图所示:

Internal error. Please refer to https://code.google.com/p/android/issuescom.intellij.ide.plugins.PluginManagerCore$EssentialPluginMissingException: Missing essential plugins: com.android.tools.design, org.jetbrains.androidat com.intellij.ide.plugins.PluginManagerCore.checkEssentialPluginsAreAvailable(PluginManagerCore.java:750)at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:843)at com.intellij.ide.plugins.PluginManagerCore.initializeAndSetPlugins(PluginManagerCore.java:1047)at com.intellij.ide.plugins.PluginDescriptorLoader$scheduleLoading$pluginSetDeferred$1.invokeSuspend(PluginDescriptorLoader.kt:397)at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

解决办法:

以Mac为例,我们需要去他的配置文件夹下,删除掉我们刚刚禁用的插件;

1.打开FInder(访达)

2.点击左上角【前往】,然后按住option键,点击【资源库】进入:/Application Support/Google/AndroidStudio2022.3/disabled_plugins.txt

3.双击打开后删除刚刚禁用的插件,保存后退出即可。

其实该文件的全部路径是:/Users/用户名/Library/Application Support/Google/AndroidStudio2022.3/disabled_plugins.txt

但是Library文件夹默认是隐藏的,需要在前往中按住option键才能看到

android studio顺利打开!