Wednesday, May 2, 2018

If Android Studio can't resolve R, do a Clean Project

Occasionally Android Studio gets itself stuck in a state where it can't resolve R, the auto-generated class that stores all the IDs of the app's resources. (Sometimes it decides to stop resolving other important things too.) The solution is do force a full recompile using Build | Clean Project and Build | Rebuild Project.

No comments:

Post a Comment