gpt4 book ai didi

android-studio - 插件 'org.jetbrains.kotlin' 初始化失败,将被禁用。请重启 Android Studio

转载 作者:IT老高 更新时间:2023-10-28 13:46:39 25 4
gpt4 key购买 nike

Android Studio 的 Kotlin 插件更新后,它停止工作。插件被自动禁用。我得到以下错误。

com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: Duplicate registration for EP: org.jetbrains.uast.uastLanguagePlugin: original plugin com.intellij, new plugin org.jetbrains.kotlin
at com.intellij.openapi.extensions.impl.ExtensionsAreaImpl.registerExtensionPoint(ExtensionsAreaImpl.java:286)
at com.intellij.openapi.extensions.impl.ExtensionsAreaImpl.registerExtensionPoint(ExtensionsAreaImpl.java:128)
at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.registerExtensionPoints(IdeaPluginDescriptorImpl.java:328)
at com.intellij.ide.plugins.PluginManagerCore.registerExtensionPointsAndExtensions(PluginManagerCore.java:1352)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:1264)
at com.intellij.ide.plugins.PluginManagerCore.initPlugins(PluginManagerCore.java:1393)
at com.intellij.ide.plugins.PluginManagerCore.getPlugins(PluginManagerCore.java:121)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentConfigs(ComponentManagerImpl.java:302)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:95)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:425)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:411)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:206)
at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:49)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:343)
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)

最佳答案

To solve this issue, you have to either upgrade or downgrade your kotlin plugin

解决方案 1:升级插件

首先进入工具菜单 > 选择 Kotlin > 配置 Kotlin 插件更新 > 选择一个 kotlin 插件并点击下载(稳定版或抢先体验,我选择抢先体验来解决这个问题)

最后在 build.gradle(Project:) 中根据下载版本


enter image description here

解决方案 2:降级插件

如果您在 ma​​c 上,请按:Command + , 打开首选项,然后选择插件并搜索kotlin并卸载它,它将回滚到以前的版本:1.1.51

Windows机器上,按Control + Alt + S打开设置对话框,然后选择插件并搜索kotlin并卸载它,它会回滚到以前的版本: 1.1.51

enter image description here

请注意:不要取消选中插件中的 kotlin,否则它将禁用 kotlin 并且无法识别 kotlin 文件和语法

关于android-studio - 插件 'org.jetbrains.kotlin' 初始化失败,将被禁用。请重启 Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47482853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com