Can Not Resolve R In Android Studio?
Solution 1:
Typically you can fix this error by cleaning your project, and then rebuilding it.
Build -> Clean Project Build -> Rebuild Project
Solution 2:
there should be issue in your xml
file . check your xml
file in layout
,drawable
folder and then clean your project.
Solution 3:
In Android Studio go to Build -> Clean Project Build -> Rebuild Project, if that doesn't work check your xml files for errors, sometimes they don't show up, but can cause this type of error.
Solution 4:
Either your compiled for some other reasons so that R
never got generated by Android Studio or you might be missing an import
statement for it if you are in a different package.
Try a clean rebuild of the project and check if you need to import R
.
Solution 5:
1.check your XML files all Drawable images are there with the same name
2.check all imports in every activity and re-imports them
3.clear and rebuild
it may work if all are right
Post a Comment for "Can Not Resolve R In Android Studio?"