Skip to content Skip to sidebar Skip to footer

Cannot Find Symbol In Android Studio Without Rebuilding Project

When I try to deploy my project to the emulator the compile fails with a bunch of Cannot find symbol errors. I have to rebuild the project then deploy everytime I make a change. Th

Solution 1:

As a temporary workaround, try turning off Preferences > Compiler > Use External Build.

(as suggested in this issue: https://code.google.com/p/android/issues/detail?id=56884)

Solution 2:

Clicking "Sync project with Gradle files" resolved this for me.

enter image description here

Solution 3:

I used the following answer and it worked great:

https://stackoverflow.com/a/19223269/1531683

You can do "File" -> "Invalidate Caches...", and select "Invalidate and Restart" option to fix this.

Solution 4:

Just Click Build -> Clean Project. It will solve the problem of missing "R.java".

Solution 5:

Post a Comment for "Cannot Find Symbol In Android Studio Without Rebuilding Project"