Android studio 4.1 未显示 IDE 中的错误
Android studio 4.1 is not showing errors into IDE
最近我用 Android Studio 4.1 更新了 android studio,但是更新后,studio 没有在 IDE 中显示带有红色下划线或红色条右侧的错误。每次我 运行 应用程序在编译后都会抛出一个错误。所以很难说错在哪里
有人知道该怎么做吗?
注意:使缓存无效并重新启动、同步项目、清理、重建不起作用
对于 Ubuntu 用户
如果您的 android 工作室在更新后无法正常打开。
只需在 FileManager 中按 CTR+H(显示隐藏文件)。现在您可以看到 .local 文件。
现在从那里删除 google 文件。 (路径 -> local/share/google).
在Windows中转到C:\Users\{USER_NAME}\AppData\Roaming\Google\
并删除AndroidStudio4.1
文件夹并启动您的Android工作室然后它会要求导入设置,不要导入任何设置,而是继续设置,问题将得到解决。
我遇到了同样的问题,在多次重启、缓存无效、清理、重建、删除 .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
}
最近我用 Android Studio 4.1 更新了 android studio,但是更新后,studio 没有在 IDE 中显示带有红色下划线或红色条右侧的错误。每次我 运行 应用程序在编译后都会抛出一个错误。所以很难说错在哪里
有人知道该怎么做吗?
注意:使缓存无效并重新启动、同步项目、清理、重建不起作用
对于 Ubuntu 用户 如果您的 android 工作室在更新后无法正常打开。 只需在 FileManager 中按 CTR+H(显示隐藏文件)。现在您可以看到 .local 文件。 现在从那里删除 google 文件。 (路径 -> local/share/google).
在Windows中转到C:\Users\{USER_NAME}\AppData\Roaming\Google\
并删除AndroidStudio4.1
文件夹并启动您的Android工作室然后它会要求导入设置,不要导入任何设置,而是继续设置,问题将得到解决。
我遇到了同样的问题,在多次重启、缓存无效、清理、重建、删除 .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
}