【问题标题】:Android studio 4.1 is not showing errors into IDEAndroid Studio 4.1 没有在 IDE 中显示错误
【发布时间】:2021-01-28 15:47:47
【问题描述】:

最近我用 Android Studio 4.1 更新了 android studio,但是更新后,studio 没有在 IDE 中显示带有红色下划线或右侧红色条的错误。每次我运行该应用程序时,它都会在编译后引发一个错误。所以很难说哪里出错了

有人知道该怎么做吗?

注意:缓存无效并重新启动、同步项目、清理、重建不起作用

【问题讨论】:

  • 文件 - 无效并重新启动。
  • @PrajwalWaingankar 不工作

标签: android android-studio android-studio-4.1


【解决方案1】:

在 Windows 中转到 C:\Users\{USER_NAME}\AppData\Roaming\Google\ 并删除 AndroidStudio4.1 文件夹并启动您的 Android Studio,然后它会要求导入设置,不要导入任何设置,而是继续设置,问题将得到解决。

【讨论】:

  • 谢谢我浪费了2天的时间寻找它终于有人得到了答案
【解决方案2】:

对于 Ubuntu 用户 如果您的 android studio 更新后无法正常打开。 只需在 FileManager 中按 CTR+H(显示隐藏文件)。现在您可以看到 .local 文件。 现在去从那里删除谷歌文件。 (路径 -> 本地/共享/谷歌)。

【讨论】:

  • 尝试重新启动2-3次并检查或按照上述步骤操作。
  • 如何在windows中修复?
  • 如何在 windows 中修复它
【解决方案3】:

我遇到了同样的问题,经过多次重新启动、使缓存失效、清理、重建、删除 .idea.gradle 文件,我意识到我需要做的就是在类路径上更新我的 Kotlin 版本 - 即构建- 项目文件。

我的 Kotlin 版本是 1.4.32,但我升级到了 1.5.0

dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'
        classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-04
    相关资源
    最近更新 更多