Android Studio 1.1.0 批量 "cannot resolve symbol"错误

标签 android android-studio

我在 Android Studio 中工作时意外重启。 之前重启项目没问题。重新启动后,我几乎在项目中的每个 improt 上都收到“无法解析符号 ...”。

项目设置(jdk 和 android sdk)看起来没问题。甚至更多——git 告诉我自上次提交以来没有项目文件被更改。 项目上的 Gradle 构建成功通过。

Android studio 版本为1.1.0(目前最新)

enter image description here

最佳答案

解决方案是:"file"->“使缓存无效...”,然后选择“无效并重新启动”选项。

我的 android studio 在电源故障期间关闭并在重新启动时遇到了这个问题。

关于Android Studio 1.1.0 批量 "cannot resolve symbol"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28854551/

相关文章:

安卓 L : Compatibility With Previous Android Versions

android - PhoneGap 未在 Android 中运行

android.app.PendingIntent 无法在包之外访问

android - 当 Singleton 似乎工作正常时,为什么要为播放音乐的 Android 应用程序使用服务?

android - Google Developer Console 错误地认为我的应用不是为平板电脑设计的

android - 错误 :Plugin with id 'com.github.dcendents.android-maven' not found

java - 单击事件后从资源布局中 inflatedView

android - 使用 FFmpeg 将 Android 屏幕捕获为视频文件

android - OpenSL ES - 安卓工作室 - NDK 10R

java - 将eclipse项目导入Android studio - 错误 "this project refers to Eclipse workspace..."