package R does not exist

This error is usually the result of not writing or incorrectly writing the package name in the source file. Note that this error is consistent with the package name in the Androidmanifest.xml.

Read More: