NASIM HAIDER QUORAISHI
try toto clean your project. If that doesn’t help there can be many reasons for this.
Check for the /res directory and there must be some file that have some error in it and that is preventing the application from being built. If you have any additional files which do not comply to the file naming conventions (may contain only [a-z0-9_.]), the R.java class might not generate.