Android Studio 停留在“分析..."上 [英] Android Studio stuck at "Analyzing..."

查看:96
本文介绍了Android Studio 停留在“分析..."上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Android 项目 (Android 4.2 Canary 15) 中,补全不再起作用,语法高亮也不再起作用.这仅发生在一个 Android 项目中(其他项目运行良好).

In my Android project (Android 4.2 Canary 15), completion does not work anymore, and neither does syntax highlighting. This is happening in one Android project only (the others work well).

我尝试清理、重建项目、创建新项目并导入文件,但没有任何更改...我尝试删除 .idea 目录和所有 .iml 文件,但不是更好...

I have tried to clean, rebuild the project, create a new project and import files, but no changes... I have tried to delete .idea directory and all .iml files, but not better...

在文件"中菜单,我刚刚尝试了选项使缓存无效/重新启动";现在我项目中的所有课程都被阻止在状态分析..."中;并且完成仍然不起作用...

In the "File" menu, I've just tried the option "Invalidate caches / restart" and now all classes in my project are blocked at the state "Analyzing..." and completion still does not work...

构建和运行项目工作,我的应用程序在我的手机上运行良好,但所有的 intellij 功能处于非活动状态.

Build and run project work, and my application starts well on my phone, but all intellij features are inactive.

推荐答案

看来 Kotlin 插件确实是罪魁祸首.

It appears that the Kotlin plugin was, indeed, the culprit.

今天(2021 年 5 月 24 日)发布了一个新版本1.5.10,我一安装就恢复正常.

Today (24 May 2021), a new version was released 1.5.10, and as soon as I installed it, everything went back to normal.

概要:从 Kotlin 插件的 1.4.32 版本升级到 1.5.0 后,代码检查、完成、链接到源代码、javadocs 等都停止工作(停留在分析..."作为图像这里此处 显示),并且仅在 sth 触发新分析时返回几秒/分钟(例如,gradle 构建、提交、加载新文件等).

Synopsis: After upgrading from version 1.4.32 of Kotlin plugin to 1.5.0, code inspection, completion, linking to sources, javadocs, etc. all stop working (stuck at "Analyzing..." as the images here and here show), and only return for a few seconds/minutes when sth triggers a new analysis (eg. a gradle build, commit, loading new files, etc).

可以在此处

这篇关于Android Studio 停留在“分析..."上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆