Alex
Alex

Reputation: 1349

Android Studio 1.1.0 mass "cannot resolve symbol" error

I have got unexpected reboot while working in Android studio. Before the reboot project was ok. After the reboot I started getting "Cannot resolve symbol ..." almost on every improt in the project.

Project setup (jdk and android sdk) looks ok. Even more - git shows me that no project files were changed since last commit. Gradle build on the project passes successfully.

Android studio version is 1.1.0 (latest by now)

enter image description here

Upvotes: 1

Views: 400

Answers (3)

Simon
Simon

Reputation: 19948

The solution is to go: "File" -> "Invalidate Caches...", and select "Invalidate and Restart" option.

My android studios shut down during a power failure and on restart I experienced this problem.

Upvotes: 1

Alex
Alex

Reputation: 1349

What finaly helped me. I am listing all my steps just in case.

Full uninstall of Android Studio
Deleting all AndroidStudio settings folders (in Documents And Settings)
Deleting Android and Gradle chache folders (in Documents And Settings .android and .gradle folders) - just in case
Fresh install of Android Studio and re-import of my project

The issue was completely gone.

What didn't help me before that:
Clean/rebuild/make the project
Checking all project and IDE settings
Updating Android SDK and Build tools

Upvotes: 0

Oscar LT
Oscar LT

Reputation: 797

Clean, Rebuild and Make Project. Sometimes Android Studio goes crazy.

Upvotes: 0

Related Questions