I\'v just installed Android Studio 0.8.2 for my first time and I have a lot of \"Cannot resolve symbol\" errors. The errors occur on both new projects and projects which wer
I run into the same problem, i solved it by performing a clean project. To do this go to;
Select build>-clean project>
Android Studio suddenly cannot resolve symbols helped:
- Exit Android Studio
- Back up your project
- Delete all the .iml files and the .idea folder
- Relaunch Android Studio and reimport your project
Delete folder: C:\Users\{your-user}\.AndroidStudio{your-version}\system\caches
It helped me
In the menu bar
Select tools>-android>-SDK manager
and download the SDK build tools, SDK platform and Google API's( the Google API stores packages such as "import android.view.Menu" etc.) for the target SDK version of your project(20 as shown in your screenshot). if you are not sure which items you have to download , you can select all of them.(will take more time to download of course).
Restart the IDE
I cannot explain logic behind this one but it absolutely worked for me. For the symbol that is being shown in red or gives error of 'Cannot resolve', press backspace and type that particular symbol again.
Again, it's crazy but worked for me
You can do "File" -> "Invalidate Caches...", and select "Invalidate and Restart" option to fix this.