Tuesday, 11 February 2014

Android Cannot Resolve R Symbol Problem

If you are writing an Android app and have come across the Android Cannot resolve R Symbol problem here are a few things to fix it.


  1. Try Rebuilding your project, sometimes the Java environment gets a bit confused, especially if you are using Android Studio.
  2. If cleaning and rebuilding your project doesn't work check your XML files, normally in places like your layout folders, values folders, menu folders plus in your root of your project normally in the form of your manifest for your project.
  3. If all the above did not fix you problem, check the names you have used in your project files, such as any drawables in your project. Make sure you are not using numbers as file names such as a drawable called 1.jpg or any other file in your project. If you have used numbers in your file names change them to either none numeric or alphanumeric names.
Doing one of the above should solve your problem, if it doesn't please let me know and I am happy to lend a hand to get your code working.


Thanks 
Sean J Connolly -  FaceBook Me