This error is usually easy to copy in other people's projects, as follows:
There are two general scenarios in which this error occurs
First Case: Guide package error-Check import to find this:
Delete it, and then re-import the R file that contains the package name.
The second situation: this situation should be more see, generally in the layout file errors, and can not survive R file, you may check:
You will find that if you do not generate r files, then you need to solve is to find the layout file errors, correct the error, after generating r files, this error will disappear!
Favorite Friends pay attention to my platform Oh! More Good articles recommended to you!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Error--activity_main cannot be resolved or was not a field